From 06baa2b56cc64ec974f0dc6e67001d0cfa030826 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 3 Apr 2011 10:24:59 -0400 Subject: [PATCH] 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. --- include/dirent.h | 2 ++ 1 file changed, 2 insertions(+) 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 *); -- 2.25.1