summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2015-07-30 10:47:35 -0500
committerElliott Hughes2015-07-30 11:33:43 -0500
commit9b828adfad09200f3f1bd3602187fe3dd5335774 (patch)
treedbea9a10676206346b39e428e74ee630a1a71219 /libnetutils
parentdcf890914c7571d3068046b9df1f672e9f45b4d2 (diff)
downloadplatform-system-core-9b828adfad09200f3f1bd3602187fe3dd5335774.tar.gz
platform-system-core-9b828adfad09200f3f1bd3602187fe3dd5335774.tar.xz
platform-system-core-9b828adfad09200f3f1bd3602187fe3dd5335774.zip
Use __ANDROID__ instead of HAVE_ANDROID_OS.
Change-Id: I9967f3fd758c2a5b40be5b60ae72be7e2fb75136
Diffstat (limited to 'libnetutils')
-rw-r--r--libnetutils/ifc_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libnetutils/ifc_utils.c b/libnetutils/ifc_utils.c
index 7d2a5fbf2..956ed30c3 100644
--- a/libnetutils/ifc_utils.c
+++ b/libnetutils/ifc_utils.c
@@ -50,7 +50,7 @@
50#define ALOGW printf 50#define ALOGW printf
51#endif 51#endif
52 52
53#ifdef HAVE_ANDROID_OS 53#if defined(__ANDROID__)
54/* SIOCKILLADDR is an Android extension. */ 54/* SIOCKILLADDR is an Android extension. */
55#define SIOCKILLADDR 0x8939 55#define SIOCKILLADDR 0x8939
56#endif 56#endif
@@ -596,7 +596,7 @@ int ifc_disable(const char *ifname)
596 596
597int ifc_reset_connections(const char *ifname, const int reset_mask) 597int ifc_reset_connections(const char *ifname, const int reset_mask)
598{ 598{
599#ifdef HAVE_ANDROID_OS 599#if defined(__ANDROID__)
600 int result, success; 600 int result, success;
601 in_addr_t myaddr = 0; 601 in_addr_t myaddr = 0;
602 struct ifreq ifr; 602 struct ifreq ifr;