summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-07-07 00:46:03 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-07-07 00:46:03 +0000
commitbbac8c40bbad3fd4191162b3784864c26ec0ad8a (patch)
treeba1862b25827a221a1cc2daeed08b4abf0f356ae /gnu
parent164e44906e26325c4d21d441e46be70ad6c94855 (diff)
Same fix as I did for bc
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.sbin/mkhybrid/src/getopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.sbin/mkhybrid/src/getopt.c b/gnu/usr.sbin/mkhybrid/src/getopt.c
index 79080aa54b3..753595098c0 100644
--- a/gnu/usr.sbin/mkhybrid/src/getopt.c
+++ b/gnu/usr.sbin/mkhybrid/src/getopt.c
@@ -70,7 +70,7 @@ the executable file might be covered by the GNU General Public License. */
/* 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>
@@ -169,7 +169,7 @@ static enum
REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER
} ordering;
-#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