1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-18 02:47:08 +00:00
termux-packages/ndk-patches/dirent.h.patch
xtkoba 7c228b846e
ndk-patches: Add IFTODT and DTTOIF to dirent.h (#8041)
ndk-patches: Add IFTODT and DTTOIF to dirent.h
2021-11-23 10:12:17 +01:00

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