summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-03 10:24:59 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-03 10:24:59 -0400
commit06baa2b56cc64ec974f0dc6e67001d0cfa030826 (patch)
tree5159712d2215cb4ee919206d2cda6eff29ed3f5d /include
parent537d33d33478034b62928e5cacf397b049ac78ab (diff)
downloadmusl-06baa2b56cc64ec974f0dc6e67001d0cfa030826.tar.gz
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.
Diffstat (limited to 'include')
-rw-r--r--include/dirent.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dirent.h b/include/dirent.h
index 209285aa..ca000bd9 100644
--- a/include/dirent.h
+++ b/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 *);