From a93204a5abced109070990a2b9d567344f352cbd Mon Sep 17 00:00:00 2001 From: Lyndon Nerenberg Date: Sun, 25 Dec 2011 12:23:41 -0800 Subject: [PATCH 1/1] Nuke directory processing conditionals; use dirent.h. --- configure.in | 2 -- h/nmh.h | 16 +--------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/configure.in b/configure.in index a933613..060086c 100644 --- a/configure.in +++ b/configure.in @@ -461,10 +461,8 @@ case "$target_os" in esac AC_SUBST(OURDEFS) -AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_TIME -AC_HEADER_SYS_WAIT AC_HEADER_STAT AC_HEADER_TIOCGWINSZ AC_CHECK_HEADERS(errno.h fcntl.h crypt.h termcap.h \ diff --git a/h/nmh.h b/h/nmh.h index c354482..8ff4ba8 100644 --- a/h/nmh.h +++ b/h/nmh.h @@ -10,22 +10,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 +#define NLENGTH(dirent) strlen((dirent)->d_name) #include #include -- 1.7.10.4