OSDN Git Service

capability used to be under linux, not system
authorGreg Hartman <ghartman@google.com>
Thu, 7 May 2015 17:27:30 +0000 (10:27 -0700)
committerGreg Hartman <ghartman@google.com>
Thu, 7 May 2015 17:28:20 +0000 (10:28 -0700)
Change-Id: Ia04f3f83a237f4cbe636b14f221cffdf9460b3a4

uidswap.c

index ce7a00d..392d631 100644 (file)
--- a/uidswap.c
+++ b/uidswap.c
 
 #ifdef ANDROID
 #include <private/android_filesystem_config.h>
+#if !defined(GCE_PLATFORM_SDK_VERSION) || (GCE_PLATFORM_SDK_VERSION >= 17)
 #include <sys/capability.h>
+#else
+#include <linux/capability.h>
+#endif
 #include <sys/prctl.h>
 #endif