This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
prctl needs unistd on Android
authorH.Merijn Brand - Tux <h.m.brand@xs4all.nl>
Sat, 6 Sep 2014 19:42:40 +0000 (21:42 +0200)
committerH.Merijn Brand - Tux <h.m.brand@xs4all.nl>
Sat, 6 Sep 2014 19:42:40 +0000 (21:42 +0200)
U/perl/d_prctl.U

index e630ce5..caf3dde 100644 (file)
@@ -38,6 +38,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[])