diff options
author | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-06-15 09:35:29 (GMT) |
---|---|---|
committer | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-06-15 09:35:29 (GMT) |
commit | c716f183f8e93567af5065e36f6a728d2b514e9e (patch) | |
tree | 112839718517d6fa5d433d52046fa22c10eb551a /Modules/_posixsubprocess.c | |
parent | d20cb0263a6b760abb10ef7e5546fa3f1ff81af7 (diff) | |
download | cpython-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.c | 3 |
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 |