fix build problem on unbuntu (ifreq gets redefined)

This commit is contained in:
gardners 2012-05-11 08:16:15 +09:30
parent 7b82ccbd7b
commit 51966737a6

4
lsif.c
View File

@ -59,7 +59,11 @@
#define SIOCGIFBRDADDR OSIOCGIFBRDADDR #define SIOCGIFBRDADDR OSIOCGIFBRDADDR
#endif #endif
#ifdef ANDROID
#include "serval.h" #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, /* for when all other options fail, as can happen on Android,
if the permissions for the socket-based method are broken. if the permissions for the socket-based method are broken.