Issue #26862: SYS_getdents64 does not need to be defined on android API 21.

This commit is contained in:
Xavier de Gaye 2016-06-15 11:35:29 +02:00
parent d20cb0263a
commit c716f183f8
1 changed files with 1 additions and 2 deletions

View File

@ -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