mirror of https://github.com/python/cpython
Issue #26862: SYS_getdents64 does not need to be defined on android API 21.
This commit is contained in:
parent
d20cb0263a
commit
c716f183f8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue