summaryrefslogtreecommitdiff
path: root/uidswap.c
diff options
context:
space:
mode:
authorGreg Hartman <ghartman@google.com>2015-05-07 10:27:30 -0700
committerGreg Hartman <ghartman@google.com>2015-05-07 10:28:20 -0700
commitb66687b3143b7e3a18d9667003e1dd8e824ecb9e (patch)
treeb4d819b60cb6b1868c571a53a2115aee1a5a960d /uidswap.c
parentbf4d79746cf93195e24b000f121c46efe04ad349 (diff)
capability used to be under linux, not system
Change-Id: Ia04f3f83a237f4cbe636b14f221cffdf9460b3a4
Diffstat (limited to 'uidswap.c')
-rw-r--r--uidswap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/uidswap.c b/uidswap.c
index ce7a00de..392d6317 100644
--- a/uidswap.c
+++ b/uidswap.c
@@ -30,7 +30,11 @@
#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