summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2014-08-20 19:19:13 +0200
committerBrian Fraser <fraserbn@gmail.com>2014-08-20 20:27:19 +0200
commit1b190a66c0446de78472717686002533bc9a9707 (patch)
tree927f1c6ee7564001916111c8f19e8abf58ad67a0
parent60aaad768dfe37227c05b00666ee7694ef9c0488 (diff)
downloadperl-1b190a66c0446de78472717686002533bc9a9707.tar.gz
Configure: Improve the d_prctl_set_name detection for Android
On some versions of Android (e.g., 4.2.2, API level 17) the header that defines the constants used for this test will not work if unistd.h isn't already included.
-rwxr-xr-xConfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/Configure b/Configure
index a67a2c9f37..23b47dfc4c 100755
--- a/Configure
+++ b/Configure
@@ -16541,6 +16541,9 @@ d_prctl_set_name=$undef
case $d_prctl in
$define)
$cat >try.c <<EOM
+#ifdef __ANDROID__
+#include <unistd.h>
+#endif
#include <sys/prctl.h>
int main (int argc, char *argv[])