[Python-checkins] cpython: Issue #26862: SYS_getdents64 does not need to be defined on android API 21.

xavier.degaye python-checkins at python.org
Wed Jun 15 06:02:02 EDT 2016


https://hg.python.org/cpython/rev/4ef3a93e1be2
changeset:   102052:4ef3a93e1be2
parent:      102050:41df7f924de6
user:        Xavier de Gaye <xdegaye at users.sourceforge.net>
date:        Wed Jun 15 11:35:29 2016 +0200
summary:
  Issue #26862: SYS_getdents64 does not need to be defined on android API 21.

files:
  Modules/_posixsubprocess.c |  3 +--
  1 files changed, 1 insertions(+), 2 deletions(-)


diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c
--- 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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list