projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0864f5f
)
Fix getifaddrs() for BSD
author
Steven Barth
<steven@midlink.org>
Sat, 11 Jul 2009 10:21:27 +0000
(10:21 +0000)
committer
Steven Barth
<steven@midlink.org>
Sat, 11 Jul 2009 10:21:27 +0000
(10:21 +0000)
libs/nixio/src/address.c
patch
|
blob
|
history
diff --git
a/libs/nixio/src/address.c
b/libs/nixio/src/address.c
index 3547f19bef80215ff22903637402f83a8268127b..41ab8a367ca288b101a3956c2840d224b9176ac1 100644
(file)
--- a/
libs/nixio/src/address.c
+++ b/
libs/nixio/src/address.c
@@
-18,6
+18,7
@@
#include "nixio.h"
#include <sys/types.h>
+#include <sys/param.h>
#include <errno.h>
#include <string.h>
@@
-346,6
+347,9
@@
static int nixio_sock_getpeername(lua_State *L) {
}
#if defined(__linux__) || defined(BSD)
+#ifdef BSD
+#include <net/if.h>
+#endif
#include <ifaddrs.h>
static int nixio_getifaddrs(lua_State *L) {