From 67fd1fe45a5e8691c45514de1ddfd0c180da72f4 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Mon, 3 Feb 2014 11:57:34 -0800 Subject: [PATCH] getifaddrs: Fix building on systems without IFF_SLAVE. --- getifaddr.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) 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"