]> granicus.if.org Git - python/commitdiff
bpo-32705: Current Android does not have posix_spawn (#5413)
authorChih-Hsuan Yen <yan12125@gmail.com>
Mon, 29 Jan 2018 09:50:35 +0000 (17:50 +0800)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 29 Jan 2018 09:50:35 +0000 (10:50 +0100)
Modules/posixmodule.c

index 4c0392e22c3bec2c46d85b49a3b4f094a0cb066d..8b11e981f11518f313bb097ebffc1688d6881c17 100644 (file)
@@ -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