diff options
author | 2001-07-07 00:46:02 +0000 | |
---|---|---|
committer | 2001-07-07 00:46:02 +0000 | |
commit | 526757fb2bd2649510626f2ab6583e98b89986e3 (patch) | |
tree | 5ce81c83e269da07c374e18d9c2e4d75ed37af38 | |
parent | Silence 2 warnings. GNU code acts as if any non-gnu libc is stupid, (diff) | |
download | wireguard-openbsd-526757fb2bd2649510626f2ab6583e98b89986e3.tar.xz wireguard-openbsd-526757fb2bd2649510626f2ab6583e98b89986e3.zip |
Same fix as I did for bc
-rw-r--r-- | gnu/usr.sbin/mkhybrid/src/getopt.c | 4 |
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 |