about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-08-24 14:23:16 -0400
committerRich Felker <dalias@aerifal.cx>2012-08-24 14:23:16 -0400
commit9a470b0a6eb85f8105155881fbd67f26a804f994 (patch)
tree897111bd3909abf6b8d1c09c88a0336924d249fd
parent67ba40d1e05c39ffe71294476d2f2c13c481f3bd (diff)
downloadmusl-9a470b0a6eb85f8105155881fbd67f26a804f994.tar.gz
musl-9a470b0a6eb85f8105155881fbd67f26a804f994.tar.xz
musl-9a470b0a6eb85f8105155881fbd67f26a804f994.zip
fix dirent.h with _BSD_SOURCE
-rw-r--r--include/dirent.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dirent.h b/include/dirent.h
index a51526d4..c19f7d58 100644
--- a/include/dirent.h
+++ b/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>