mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-23 15:02:27 +00:00
fix build problem on unbuntu (ifreq gets redefined)
This commit is contained in:
parent
7b82ccbd7b
commit
51966737a6
4
lsif.c
4
lsif.c
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user