7c228b846e
ndk-patches: Add IFTODT and DTTOIF to dirent.h
13 lines
246 B
Diff
13 lines
246 B
Diff
--- ./usr/include/dirent.h.orig
|
|
+++ ./usr/include/dirent.h
|
|
@@ -57,6 +57,9 @@
|
|
#define DT_SOCK 12
|
|
#define DT_WHT 14
|
|
|
|
+#define IFTODT(x) ((x)>>12 & 0xF)
|
|
+#define DTTOIF(x) ((x)<<12)
|
|
+
|
|
#if defined(__LP64__)
|
|
#define __DIRENT64_INO_T ino_t
|
|
#else
|