From: markus schnalke Date: Mon, 26 Mar 2012 21:03:39 +0000 (+0200) Subject: Remove overrides for 'broken' stat macros. Remove redundant SEEK_* macro defs. X-Git-Tag: mmh-thesis-end~180 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=50c72f9094eea8ad222ffb3b11f51eb4bb52f024;p=mmh Remove overrides for 'broken' stat macros. Remove redundant SEEK_* macro defs. Merged from nmh. Thanks to Lyndon Nerenberg. --- diff --git a/configure.ac b/configure.ac index d23079a..1eb0fdc 100644 --- a/configure.ac +++ b/configure.ac @@ -336,7 +336,6 @@ AC_SUBST(OURDEFS) AC_HEADER_STDC AC_HEADER_TIME -AC_HEADER_STAT AC_HEADER_TIOCGWINSZ AC_CHECK_HEADERS(fcntl.h crypt.h termcap.h \ langinfo.h wchar.h wctype.h iconv.h \ diff --git a/h/nmh.h b/h/nmh.h index aa15d4c..eb85a4a 100644 --- a/h/nmh.h +++ b/h/nmh.h @@ -24,19 +24,6 @@ #include /* -** symbolic constants for lseek and fseek -*/ -#ifndef SEEK_SET -# define SEEK_SET 0 -#endif -#ifndef SEEK_CUR -# define SEEK_CUR 1 -#endif -#ifndef SEEK_END -# define SEEK_END 2 -#endif - -/* ** we should be getting this value from pathconf(_PC_PATH_MAX) */ #ifndef PATH_MAX @@ -61,40 +48,3 @@ #endif #include - -/* -** If your stat macros are broken, -** we will just undefine them. -*/ -#ifdef STAT_MACROS_BROKEN -# ifdef S_ISBLK -# undef S_ISBLK -# endif -# ifdef S_ISCHR -# undef S_ISCHR -# endif -# ifdef S_ISDIR -# undef S_ISDIR -# endif -# ifdef S_ISFIFO -# undef S_ISFIFO -# endif -# ifdef S_ISLNK -# undef S_ISLNK -# endif -# ifdef S_ISMPB -# undef S_ISMPB -# endif -# ifdef S_ISMPC -# undef S_ISMPC -# endif -# ifdef S_ISNWK -# undef S_ISNWK -# endif -# ifdef S_ISREG -# undef S_ISREG -# endif -# ifdef S_ISSOCK -# undef S_ISSOCK -# endif -#endif /* STAT_MACROS_BROKEN. */