]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't include values.h.
authorJim Meyering <jim@meyering.net>
Thu, 15 Jun 1995 18:44:48 +0000 (18:44 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 15 Jun 1995 18:44:48 +0000 (18:44 +0000)
[__P]: Undefine it.

[UNIX || unix]: Also test __UNIX__, __unix__,
and _POSIX_VERSION.  Reported by Arne H. Juul.

src/md5sum.c

index 0b95ff5d1229a9ef2ba2efc8acdd65c8aa73a8b4..bd88976ae8aedbd0c65420c948e751fc189a05f8 100644 (file)
@@ -30,7 +30,6 @@
 
 #include <getopt.h>
 #include <stdio.h>
-#include <values.h>
 #include <sys/types.h>
 
 #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