summaryrefslogtreecommitdiffstats
path: root/src/dnsmasq.h
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2010-01-20 10:16:30 -0800
committerSan Mehat <san@google.com>2010-01-20 10:55:17 -0800
commit5658bcb797978c3472335d93554405aba8236f66 (patch)
treef017516d2d1e008fe912b15bbe8eee58ffcc4214 /src/dnsmasq.h
parentffd68729961f7383f2e35494a03ccdef20f86c98 (diff)
downloadandroid_external_dnsmasq-5658bcb797978c3472335d93554405aba8236f66.tar.gz
android_external_dnsmasq-5658bcb797978c3472335d93554405aba8236f66.tar.bz2
android_external_dnsmasq-5658bcb797978c3472335d93554405aba8236f66.zip
dnsmasq: Tweak for building on Android
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'src/dnsmasq.h')
-rwxr-xr-xsrc/dnsmasq.h12
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>