From: Jim Meyering Date: Thu, 15 Jun 1995 18:44:48 +0000 (+0000) Subject: Don't include values.h. X-Git-Tag: textutils-1_12_1~101 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aab046d29b91a48dd129401cda3094a64bb20d9f;p=thirdparty%2Fcoreutils.git Don't include values.h. [__P]: Undefine it. [UNIX || unix]: Also test __UNIX__, __unix__, and _POSIX_VERSION. Reported by Arne H. Juul. --- diff --git a/src/md5sum.c b/src/md5sum.c index 0b95ff5d12..bd88976ae8 100644 --- a/src/md5sum.c +++ b/src/md5sum.c @@ -30,7 +30,6 @@ #include #include -#include #include #if defined (HAVE_LIMITS_H) || defined (_LIBC) @@ -49,7 +48,7 @@ #endif /* For performance reasons we use low-level I/O whenever possible. */ -#if defined UNIX || defined unix +#if UNIX || __UNIX__ || unix || __unix__ || _POSIX_VERSION # define FILETYPE int # define STDINFILE STDIN_FILENO # define OPEN open @@ -74,6 +73,7 @@ # define CLOSE(f) fclose (f) #endif +#undef __P #if defined __STDC__ && __STDC__ # define __P(args) args #else