summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-07-07 00:40:17 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-07-07 00:40:17 +0000
commit164e44906e26325c4d21d441e46be70ad6c94855 (patch)
tree9b2b142a5c39051c593d03f09e087f320814c8af
parentfc28ae5056b6026e1c40ce71885292bce37dd7ab (diff)
Silence 2 warnings. GNU code acts as if any non-gnu libc is stupid,
ours is not...
-rw-r--r--gnu/usr.bin/bc/lib/getopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/bc/lib/getopt.c b/gnu/usr.bin/bc/lib/getopt.c
index 23ce0648b79..e838269b799 100644
--- a/gnu/usr.bin/bc/lib/getopt.c
+++ b/gnu/usr.bin/bc/lib/getopt.c
@@ -57,7 +57,7 @@ Cambridge, MA 02139, USA. */
/* This needs to come after some library #include
to get __GNU_LIBRARY__ defined. */
-#ifdef __GNU_LIBRARY__
+#if defined(__GNU_LIBRARY__) || defined(__OpenBSD__)
/* Don't include stdlib.h for non-GNU C libraries because some of them
contain conflicting prototypes for getopt. */
#include <stdlib.h>
@@ -159,7 +159,7 @@ static enum
/* Value of POSIXLY_CORRECT environment variable. */
static char *posixly_correct;
-#ifdef __GNU_LIBRARY__
+#if defined(__GNU_LIBRARY__) || defined(__OpenBSD__)
/* We want to avoid inclusion of string.h with non-GNU libraries
because there are many ways it can cause trouble.
On some systems, it contains special magic macros that don't work