diff options
author | Gregory P. Smith <greg@krypto.org> | 2014-04-14 13:31:21 -0700 |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2014-04-14 13:31:21 -0700 |
commit | 9c8c8840764dff22962f9b7a233379ed58d80161 (patch) | |
tree | 0a7ae36a097951a1a4ddaf1893995a4310479e5d /Modules | |
parent | 0eb0319320629d8a5281a52e334b73b8343fbb1b (diff) | |
download | cpython-9c8c8840764dff22962f9b7a233379ed58d80161.tar.gz |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_posixsubprocess.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index a2d7022992..648a569ca7 100644 --- a/Modules/_posixsubprocess.c +++ b/Modules/_posixsubprocess.c @@ -18,6 +18,12 @@ #include <dirent.h> #endif +#if defined(__ANDROID__) && !defined(SYS_getdents64) +/* Android doesn't expose syscalls, add the definition manually. */ +# include <sys/linux-syscalls.h> +# define SYS_getdents64 __NR_getdents64 +#endif + #if defined(sun) /* readdir64 is used to work around Solaris 9 bug 6395699. */ # define readdir readdir64 |