summaryrefslogtreecommitdiff
path: root/src/md5sum.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-06-15 18:44:48 +0000
committerJim Meyering <jim@meyering.net>1995-06-15 18:44:48 +0000
commitaab046d29b91a48dd129401cda3094a64bb20d9f (patch)
tree9275c63f7420c73d095610c28ab62621fa4e36c1 /src/md5sum.c
parentad1b9f08510cd6f7e28e1dce15480c7b2b06f120 (diff)
downloadcoreutils-aab046d29b91a48dd129401cda3094a64bb20d9f.tar.xz
Don't include values.h.
[__P]: Undefine it. [UNIX || unix]: Also test __UNIX__, __unix__, and _POSIX_VERSION. Reported by Arne H. Juul.
Diffstat (limited to 'src/md5sum.c')
-rw-r--r--src/md5sum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/md5sum.c b/src/md5sum.c
index 0b95ff5d1..bd88976ae 100644
--- a/src/md5sum.c
+++ b/src/md5sum.c
@@ -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