diff options
Diffstat (limited to 'src/dnsmasq.h')
-rwxr-xr-x | src/dnsmasq.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/dnsmasq.h b/src/dnsmasq.h index e84ea85..f204cbf 100755 --- a/src/dnsmasq.h +++ b/src/dnsmasq.h @@ -24,7 +24,9 @@ /* Get linux C library versions. */ #ifdef __linux__ -# define _GNU_SOURCE +# ifndef __ANDROID__ +# define _GNU_SOURCE +# endif # include <features.h> #endif @@ -37,7 +39,11 @@ # include <nameser.h> # include <arpa/nameser_compat.h> #else -# include <arpa/nameser.h> +# ifdef __ANDROID__ +# include "nameser.h" +# else +# include <arpa/nameser.h> +# endif #endif /* and this. */ @@ -79,7 +85,7 @@ #include <pwd.h> #include <grp.h> #include <stdarg.h> -#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__sun__) || defined (__sun) +#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__sun__) || defined (__sun) || defined (__ANDROID__) # include <netinet/if_ether.h> #else # include <net/ethernet.h> |