From c716f183f8e93567af5065e36f6a728d2b514e9e Mon Sep 17 00:00:00 2001 From: Xavier de Gaye Date: Wed, 15 Jun 2016 11:35:29 +0200 Subject: [PATCH] Issue #26862: SYS_getdents64 does not need to be defined on android API 21. --- Modules/_posixsubprocess.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index a0109fb2707..0ca0aa5cda3 100644 --- a/Modules/_posixsubprocess.c +++ b/Modules/_posixsubprocess.c @@ -21,8 +21,7 @@ #include #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 # define SYS_getdents64 __NR_getdents64 #endif