Parcourir la source

fix dirent.h with _BSD_SOURCE

Rich Felker il y a 12 ans
Parent
commit
9a470b0a6e
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      include/dirent.h

+ 3 - 0
include/dirent.h

@@ -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>