From 5ae78fd67db80de17a995b1bc637bf131cfe2bb5 Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Mon, 26 Mar 2012 22:59:03 +0200 Subject: [PATCH] Nuke directory processing conditionals; use dirent.h. Merged from nmh. Thanks to Lyndon Nerenberg. --- configure.ac | 1 - h/nmh.h | 18 ++---------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/configure.ac b/configure.ac index 9fd84c8..d23079a 100644 --- a/configure.ac +++ b/configure.ac @@ -334,7 +334,6 @@ case "$target_os" in esac AC_SUBST(OURDEFS) -AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_TIME AC_HEADER_STAT diff --git a/h/nmh.h b/h/nmh.h index 19549e4..aa15d4c 100644 --- a/h/nmh.h +++ b/h/nmh.h @@ -9,22 +9,8 @@ #include #include -#if HAVE_DIRENT_H -# include -# define NLENGTH(dirent) strlen((dirent)->d_name) -#else -# define dirent direct -# define NLENGTH(dirent) (dirent)->d_namlen -# if HAVE_SYS_NDIR_H -# include -# endif -# if HAVE_SYS_DIR_H -# include -# endif -# if HAVE_NDIR_H -# include -# endif -#endif +#include +#define NLENGTH(dirent) strlen((dirent)->d_name) #include #include -- 1.7.10.4