From 8c79b4ebb544f62c1aab39e0d149d81edaac2549 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 10 Nov 2014 14:56:49 -0800 Subject: [PATCH] Add the feature macros glibc uses. Change-Id: I4da92b67d410839ea4ef0beaaa6c5cca06b74c0d --- libc/include/dirent.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libc/include/dirent.h b/libc/include/dirent.h index a849a61f1..4ca3a7d4f 100644 --- a/libc/include/dirent.h +++ b/libc/include/dirent.h @@ -58,6 +58,12 @@ struct dirent64 { __DIRENT64_BODY }; #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;