From f6968e3c0822b27e9aa584c3490573f34b1725c1 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. (cherry picked from commit 2ba2888cac2f04daff7bbaf032d0df7a095b00c3) Change-Id: I3845871bb44dae94d9a0428af0f562ddfb8bd660 --- 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