Przeglądaj źródła

fix dirent.h with _BSD_SOURCE

Rich Felker 12 lat temu
rodzic
commit
9a470b0a6e
1 zmienionych plików z 3 dodań i 0 usunięć
  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>