summaryrefslogtreecommitdiff
path: root/lib/readline/posixdir.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/readline/posixdir.h')
-rw-r--r--lib/readline/posixdir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/readline/posixdir.h b/lib/readline/posixdir.h
index 8b0e5bcb..7480a93d 100644
--- a/lib/readline/posixdir.h
+++ b/lib/readline/posixdir.h
@@ -42,7 +42,7 @@
# define D_NAMLEN(d) ((d)->d_namlen)
#endif /* !HAVE_DIRENT_H */
-#if defined (STRUCT_DIRENT_HAS_D_INO)
+#if defined (STRUCT_DIRENT_HAS_D_INO) && !defined (STRUCT_DIRENT_HAS_D_FILENO)
# define d_fileno d_ino
#endif