From: Steven Barth Date: Sat, 11 Jul 2009 10:21:27 +0000 (+0000) Subject: Fix getifaddrs() for BSD X-Git-Tag: 0.10.0~1375 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=81628421079357ff3a70ad5aaeb4f0e372b632f4;p=oweals%2Fluci.git Fix getifaddrs() for BSD --- 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 +#include #include #include @@ -346,6 +347,9 @@ static int nixio_sock_getpeername(lua_State *L) { } #if defined(__linux__) || defined(BSD) +#ifdef BSD +#include +#endif #include static int nixio_getifaddrs(lua_State *L) {