From: markus schnalke Date: Mon, 26 Mar 2012 20:59:03 +0000 (+0200) Subject: Nuke directory processing conditionals; use dirent.h. X-Git-Tag: mmh-thesis-end~181 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=5ae78fd67db80de17a995b1bc637bf131cfe2bb5 Nuke directory processing conditionals; use dirent.h. Merged from nmh. Thanks to Lyndon Nerenberg. --- 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