commit | 6e7e2d201f91fe5a04adc1b49ebb589dc56b425f | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Nov 10 23:18:35 2014 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Nov 10 23:18:36 2014 +0000 |
tree | 34be1799207411ee4a1e4670321075d3a3366d8f | |
parent | 6330b70cac8072007be9c351a934f9ff10f30cb5 [diff] | |
parent | 8c79b4ebb544f62c1aab39e0d149d81edaac2549 [diff] |
Merge "Add the <dirent.h> feature macros glibc uses."
diff --git a/libc/include/dirent.h b/libc/include/dirent.h index a849a61..4ca3a7d 100644 --- a/libc/include/dirent.h +++ b/libc/include/dirent.h
@@ -58,6 +58,12 @@ #undef __DIRENT64_BODY +/* glibc compatibility. */ +#undef _DIRENT_HAVE_D_NAMLEN /* Linux doesn't have a d_namlen field. */ +#define _DIRENT_HAVE_D_RECLEN +#define _DIRENT_HAVE_D_OFF +#define _DIRENT_HAVE_D_TYPE + #define d_fileno d_ino typedef struct DIR DIR;