From 2ba2888cac2f04daff7bbaf032d0df7a095b00c3 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 11 Jul 2014 21:10:15 -0700 Subject: [PATCH] Define SIOCKILLADDR which isn't in the common kernel uapi headers. Change-Id: I8760950d13a9625aa543e76bc9d6cd86ac782c2e --- libc/include/sys/socket.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libc/include/sys/socket.h b/libc/include/sys/socket.h index ae2f2381e..3b11d202d 100644 --- a/libc/include/sys/socket.h +++ b/libc/include/sys/socket.h @@ -40,6 +40,13 @@ #include #include +/* This is an Android extension that won't be in the uapi headers for the common kernel. */ +#if !defined(SIOCKILLADDR) +#define SIOCKILLADDR 0x8939 +#else +#error SIOCKILLADDR defined twice +#endif + __BEGIN_DECLS #define sockaddr_storage __kernel_sockaddr_storage