fix dirent.h with _BSD_SOURCE
authorRich Felker <dalias@aerifal.cx>
Fri, 24 Aug 2012 18:23:16 +0000 (14:23 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 24 Aug 2012 18:23:16 +0000 (14:23 -0400)
include/dirent.h

index a51526d..c19f7d5 100644 (file)
@@ -7,6 +7,9 @@ extern "C" {
 
 #define __NEED_ino_t
 #define __NEED_off_t
+#ifdef _BSD_SOURCE
+#define __NEED_size_t
+#endif
 
 #include <bits/alltypes.h>