diff options
author | Brian Fraser <fraserbn@gmail.com> | 2014-08-20 19:19:13 +0200 |
---|---|---|
committer | Brian Fraser <fraserbn@gmail.com> | 2014-08-20 20:27:19 +0200 |
commit | 1b190a66c0446de78472717686002533bc9a9707 (patch) | |
tree | 927f1c6ee7564001916111c8f19e8abf58ad67a0 | |
parent | 60aaad768dfe37227c05b00666ee7694ef9c0488 (diff) | |
download | perl-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-x | Configure | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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[]) |