summaryrefslogtreecommitdiff
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorChih-Hsuan Yen <yan12125@gmail.com>2018-01-29 17:50:35 +0800
committerVictor Stinner <victor.stinner@gmail.com>2018-01-29 10:50:35 +0100
commit8997f9cd1a59f04fbb8c7b590295a9f38c548744 (patch)
treecb40cfc542c81265d3dc54a92a329464cb8d077f /Modules/posixmodule.c
parent2a3260bb030b0d4620242110c0ee5abc379afa8d (diff)
downloadcpython-git-8997f9cd1a59f04fbb8c7b590295a9f38c548744.tar.gz
bpo-32705: Current Android does not have posix_spawn (#5413)
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 4c0392e22c..8b11e981f1 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -176,7 +176,14 @@ corresponding Unix manual entries for more information on calls.");
#else
/* Unix functions that the configure script doesn't check for */
#define HAVE_EXECV 1
+/* bpo-32705: Current Android does not have posix_spawn
+ * Most likely posix_spawn will be available in next Android version (Android
+ * P, API 28). Need revisit then. See
+ * https://android-review.googlesource.com/c/platform/bionic/+/504842
+ **/
+#ifndef __ANDROID__
#define HAVE_POSIX_SPAWN 1
+#endif
#define HAVE_FORK 1
#if defined(__USLC__) && defined(__SCO_VERSION__) /* SCO UDK Compiler */
#define HAVE_FORK1 1