From: Lyndon Nerenberg Date: Sun, 25 Dec 2011 20:23:41 +0000 (-0800) Subject: Nuke directory processing conditionals; use dirent.h. X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=a93204a5abced109070990a2b9d567344f352cbd;p=mmh Nuke directory processing conditionals; use dirent.h. --- 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