Nuke directory processing conditionals; use dirent.h.
[mmh] / h / nmh.h
diff --git a/h/nmh.h b/h/nmh.h
index 19549e4..aa15d4c 100644 (file)
--- a/h/nmh.h
+++ b/h/nmh.h
@@ -9,22 +9,8 @@
 #include <ctype.h>
 #include <sys/stat.h>
 
-#if HAVE_DIRENT_H
-# include <dirent.h>
-# define NLENGTH(dirent) strlen((dirent)->d_name)
-#else
-# define dirent direct
-# define NLENGTH(dirent) (dirent)->d_namlen
-# if HAVE_SYS_NDIR_H
-#  include <sys/ndir.h>
-# endif
-# if HAVE_SYS_DIR_H
-#  include <sys/dir.h>
-# endif
-# if HAVE_NDIR_H
-#  include <ndir.h>
-# endif
-#endif
+#include <dirent.h>
+#define NLENGTH(dirent) strlen((dirent)->d_name)
 
 #include <stdlib.h>
 #include <stdarg.h>