move invariant netinet/in.h stuff out of bits/in.h
[musl] / include / dirent.h
index a980629..7b70abd 100644 (file)
@@ -18,9 +18,11 @@ struct dirent
        off_t d_off;
        unsigned short d_reclen;
        unsigned char d_type;
-       char d_name[1];
+       char d_name[256];
 };
 
+#define d_fileno d_ino
+
 int            closedir(DIR *);
 DIR           *fdopendir(int);
 DIR           *opendir(const char *);
@@ -46,10 +48,10 @@ int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int
 #define DT_WHT 14
 #define IFTODT(x) ((x)>>12 & 017)
 #define DTTOIF(x) ((x)<<12)
-#endf
+#endif
 
 #ifdef __cplusplus
-extern }
+}
 #endif
 
 #endif