From: Gregory P. Smith Date: Mon, 14 Apr 2014 20:31:21 +0000 (-0700) Subject: Add conditional code for android's lack of definition of SYS_getdent64. X-Git-Tag: v3.4.1rc1~84^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efeb9da4ae97861101a7582f8eafdaf836e82cd7;p=thirdparty%2FPython%2Fcpython.git Add conditional code for android's lack of definition of SYS_getdent64. Fixes issue20307. No Misc/NEWS entry because frankly this is an esoteric platform for anyone to be figuring out how to cross compile CPython for. --- diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index a2d702299260..648a569ca7ff 100644 --- a/Modules/_posixsubprocess.c +++ b/Modules/_posixsubprocess.c @@ -18,6 +18,12 @@ #include #endif +#if defined(__ANDROID__) && !defined(SYS_getdents64) +/* Android doesn't expose syscalls, add the definition manually. */ +# include +# define SYS_getdents64 __NR_getdents64 +#endif + #if defined(sun) /* readdir64 is used to work around Solaris 9 bug 6395699. */ # define readdir readdir64