| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 01bafdc commit efeb9da
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,6 +18,12 @@ | |||
| 18 | 18 | #include <dirent.h> | |
| 19 | 19 | #endif | |
| 20 | 20 | ||
| 21 | + #if defined(__ANDROID__) && !defined(SYS_getdents64) | ||
| 22 | + /* Android doesn't expose syscalls, add the definition manually. */ | ||
| 23 | + # include <sys/linux-syscalls.h> | ||
| 24 | + # define SYS_getdents64 __NR_getdents64 | ||
| 25 | + #endif | ||
| 26 | + | ||
| 21 | 27 | #if defined(sun) | |
| 22 | 28 | /* readdir64 is used to work around Solaris 9 bug 6395699. */ | |
| 23 | 29 | # define readdir readdir64 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments