diff options
| author | cgd <cgd@NetBSD.org> | 1995-04-29 05:34:41 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1995-04-29 05:34:41 +0000 |
| commit | ebaadd7e30d1623303dd1c49b5cfe726830951ec (patch) | |
| tree | 1f7d3d64166757332e35683857787665517d3fda /gnu/usr.bin/diff | |
| parent | a12c29d63c93eb5229220c752df52aee60ac7507 (diff) | |
include stdlib.h and string.h on NetBSD, because we _need_ the protos.
Diffstat (limited to 'gnu/usr.bin/diff')
| -rw-r--r-- | gnu/usr.bin/diff/getopt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/diff/getopt.c b/gnu/usr.bin/diff/getopt.c index 964189d2dd4..21fa7fad286 100644 --- a/gnu/usr.bin/diff/getopt.c +++ b/gnu/usr.bin/diff/getopt.c @@ -53,7 +53,7 @@ /* This needs to come after some library #include to get __GNU_LIBRARY__ defined. */ -#ifdef __GNU_LIBRARY__ +#if defined(__GNU_LIBRARY__) || defined(__NetBSD__) /* Don't include stdlib.h for non-GNU C libraries because some of them contain conflicting prototypes for getopt. */ #include <stdlib.h> @@ -155,7 +155,7 @@ static enum /* Value of POSIXLY_CORRECT environment variable. */ static char *posixly_correct; -#ifdef __GNU_LIBRARY__ +#if defined(__GNU_LIBRARY__) || defined(__NetBSD__) /* 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 |
