Browse Source

d_fileno alias for d_ino in dirent

this is nonstandard but since POSIX reserved d_ prefix in dirent.h we
might as well define it unconditionally. some programs depend on it.
Rich Felker 14 years ago
parent
commit
06baa2b56c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/dirent.h

+ 2 - 0
include/dirent.h

@@ -21,6 +21,8 @@ struct dirent
 	char d_name[1];
 };
 
+#define d_fileno d_ino
+
 int            closedir(DIR *);
 DIR           *fdopendir(int);
 DIR           *opendir(const char *);