summaryrefslogtreecommitdiff
path: root/android/main.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-08-20 16:06:47 +0300
committerSzymon Janc <szymon.janc@tieto.com>2014-08-22 10:05:51 +0200
commit2af0c998acaba11fd23a6b30abd9753af8719730 (patch)
tree4d84ae45cb82f4d147fb1f66b4f88e33e6c5b121 /android/main.c
parentb9fb944a844e164fbb647e0fd1cd5ddd40fca988 (diff)
downloadbluez-2af0c998acaba11fd23a6b30abd9753af8719730.tar.gz
android: Fix header include
Since Android KitKat we can use sys/prctl.h and sys/capability.h as specified in the manual page. Fixes also build warnings: ... warning: implicit declaration of function 'prctl' [-Wimplicit-function-declaration] if (prctl(PR_SET_KEEPCAPS, 1) < 0) { ^ ...
Diffstat (limited to 'android/main.c')
-rw-r--r--android/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/android/main.c b/android/main.c
index 0a0c15080..529978961 100644
--- a/android/main.c
+++ b/android/main.c
@@ -36,10 +36,8 @@
#include <unistd.h>
#include <sys/signalfd.h>
-#if defined(ANDROID)
+#include <sys/prctl.h>
#include <sys/capability.h>
-#include <linux/prctl.h>
-#endif
#include <glib.h>