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 a51526d4694eb4eecaf131d931fb08c1a31bee2e..c19f7d58089a54758dce4204ce8105ee71521a4b 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>