summaryrefslogtreecommitdiffstats
path: root/Modules/_posixsubprocess.c
diff options
context:
space:
mode:
authorXavier de Gaye <xdegaye@users.sourceforge.net>2016-06-15 09:35:29 (GMT)
committerXavier de Gaye <xdegaye@users.sourceforge.net>2016-06-15 09:35:29 (GMT)
commitc716f183f8e93567af5065e36f6a728d2b514e9e (patch)
tree112839718517d6fa5d433d52046fa22c10eb551a /Modules/_posixsubprocess.c
parentd20cb0263a6b760abb10ef7e5546fa3f1ff81af7 (diff)
downloadcpython-c716f183f8e93567af5065e36f6a728d2b514e9e.zip
cpython-c716f183f8e93567af5065e36f6a728d2b514e9e.tar.gz
cpython-c716f183f8e93567af5065e36f6a728d2b514e9e.tar.bz2
Issue #26862: SYS_getdents64 does not need to be defined on android API 21.
Diffstat (limited to 'Modules/_posixsubprocess.c')
-rw-r--r--Modules/_posixsubprocess.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c
index a0109fb..0ca0aa5 100644
--- a/Modules/_posixsubprocess.c
+++ b/Modules/_posixsubprocess.c
@@ -21,8 +21,7 @@
#include <dirent.h>
#endif
-#if defined(__ANDROID__) && !defined(SYS_getdents64)
-/* Android doesn't expose syscalls, add the definition manually. */
+#if defined(__ANDROID__) && __ANDROID_API__ < 21 && !defined(SYS_getdents64)
# include <sys/linux-syscalls.h>
# define SYS_getdents64 __NR_getdents64
#endif