diff --git a/getifaddr.c b/getifaddr.c index aea25da..c927c5e 100644 --- a/getifaddr.c +++ b/getifaddr.c @@ -44,18 +44,21 @@ #include "config.h" #if HAVE_GETIFADDRS -#include -#ifdef __linux__ -#ifndef AF_LINK -#define AF_LINK AF_INET -#endif -#else -#include -#endif +# include +# ifdef __linux__ +# ifndef AF_LINK +# define AF_LINK AF_INET +# endif +# else +# include +# endif +# ifndef IFF_SLAVE +# define IFF_SLAVE 0 +# endif #endif #ifdef HAVE_NETLINK -#include -#include +# include +# include #endif #include "upnpglobalvars.h" #include "getifaddr.h"