summaryrefslogtreecommitdiffstats
path: root/libnetutils
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-11-12 13:05:01 -0800
committerElliott Hughes <enh@google.com>2013-11-12 13:05:01 -0800
commit2d640c2640b957f704d86fcaea6e5a4af54dde2c (patch)
treede9b2a48f83915a4980522706382c3f7eefc96fa /libnetutils
parente627929490dfb92ab51ec6feb259d793a4a9f394 (diff)
downloadsystem_core-2d640c2640b957f704d86fcaea6e5a4af54dde2c.zip
system_core-2d640c2640b957f704d86fcaea6e5a4af54dde2c.tar.gz
system_core-2d640c2640b957f704d86fcaea6e5a4af54dde2c.tar.bz2
Fix libnetutils to build with clean uapi headers.
(And old ones too.) Bug: 11559337 Change-Id: Ie61218055bbe07655a9d53c539aa47b85098e42c
Diffstat (limited to 'libnetutils')
-rw-r--r--libnetutils/ifc_utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libnetutils/ifc_utils.c b/libnetutils/ifc_utils.c
index eb33d06..4d004f6 100644
--- a/libnetutils/ifc_utils.c
+++ b/libnetutils/ifc_utils.c
@@ -50,6 +50,11 @@
#define ALOGW printf
#endif
+#ifdef HAVE_ANDROID_OS
+/* SIOCKILLADDR is an Android extension. */
+#define SIOCKILLADDR 0x8939
+#endif
+
static int ifc_ctl_sock = -1;
static int ifc_ctl_sock6 = -1;
void printerr(char *fmt, ...);