summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/system.h b/src/system.h
index 6fe212a14..423f0fa8b 100644
--- a/src/system.h
+++ b/src/system.h
@@ -224,15 +224,9 @@ initialize_exit_failure (int status)
# define O_TEXT 0
#endif
-#if HAVE_DIRENT_H
-# include <dirent.h>
-# ifndef _D_EXACT_NAMLEN
-# define _D_EXACT_NAMLEN(dp) strlen ((dp)->d_name)
-# endif
-#else
-# define dirent direct
-# define _D_EXACT_NAMLEN(dp) (dp)->d_namlen
-# include <ndir.h>
+#include <dirent.h>
+#ifndef _D_EXACT_NAMLEN
+# define _D_EXACT_NAMLEN(dp) strlen ((dp)->d_name)
#endif
enum