diff options
author | Steven Barth <steven@midlink.org> | 2009-07-11 10:21:27 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-07-11 10:21:27 +0000 |
commit | 81628421079357ff3a70ad5aaeb4f0e372b632f4 (patch) | |
tree | 2de1077c8440ca3e5e577163a63f00bdb4a288cb /libs/nixio | |
parent | 0864f5f88b45f896808b191c3409063582606477 (diff) |
Fix getifaddrs() for BSD
Diffstat (limited to 'libs/nixio')
-rw-r--r-- | libs/nixio/src/address.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/nixio/src/address.c b/libs/nixio/src/address.c index 3547f19be..41ab8a367 100644 --- 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) { |