From 51966737a625ab8f25cfb56587f676ac23d6a96d Mon Sep 17 00:00:00 2001 From: gardners Date: Fri, 11 May 2012 08:16:15 +0930 Subject: [PATCH] fix build problem on unbuntu (ifreq gets redefined) --- lsif.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lsif.c b/lsif.c index c8f9aaa4..a8ed72c8 100644 --- a/lsif.c +++ b/lsif.c @@ -59,7 +59,11 @@ #define SIOCGIFBRDADDR OSIOCGIFBRDADDR #endif +#ifdef ANDROID #include "serval.h" +#else +#warning for some reason including serval.h here causes ifmap, ifreq and ifconf to be redefined on some linux distros +#endif /* for when all other options fail, as can happen on Android, if the permissions for the socket-based method are broken.