diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-07-27 20:07:57 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-07-27 20:07:57 +0000 |
commit | e6d9feefb68413d560afe2038d382a45a852a4ea (patch) | |
tree | 112314d29f829af2f39afc7885df4ab940c8695e /usr.bin | |
parent | 6b2e4da02f722cd5dffbadcfc683a9e45bfbdf48 (diff) |
Fix compilation on gcc2 platforms, where _Bool and _Complex aren't
built into the compiler and instead have to be gotten from stdbool.h
and complex.h
Problem noted by miod@, fix by deraadt@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/xlint/lint1/decl.c | 6 | ||||
-rw-r--r-- | usr.bin/xlint/lint2/chk.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/usr.bin/xlint/lint1/decl.c b/usr.bin/xlint/lint1/decl.c index 3ee6f39670f..25bac2d07f2 100644 --- a/usr.bin/xlint/lint1/decl.c +++ b/usr.bin/xlint/lint1/decl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: decl.c,v 1.25 2010/07/24 22:17:03 guenther Exp $ */ +/* $OpenBSD: decl.c,v 1.26 2010/07/27 20:07:56 guenther Exp $ */ /* $NetBSD: decl.c,v 1.11 1995/10/02 17:34:16 jpo Exp $ */ /* @@ -33,13 +33,15 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: decl.c,v 1.25 2010/07/24 22:17:03 guenther Exp $"; +static char rcsid[] = "$OpenBSD: decl.c,v 1.26 2010/07/27 20:07:56 guenther Exp $"; #endif #include <sys/param.h> #include <limits.h> #include <stdlib.h> #include <string.h> +#include <stdbool.h> +#include <complex.h> #include "lint1.h" diff --git a/usr.bin/xlint/lint2/chk.c b/usr.bin/xlint/lint2/chk.c index 5ec065a5995..21e8d80e998 100644 --- a/usr.bin/xlint/lint2/chk.c +++ b/usr.bin/xlint/lint2/chk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: chk.c,v 1.17 2010/07/24 22:17:03 guenther Exp $ */ +/* $OpenBSD: chk.c,v 1.18 2010/07/27 20:07:56 guenther Exp $ */ /* $NetBSD: chk.c,v 1.2 1995/07/03 21:24:42 cgd Exp $ */ /* @@ -33,12 +33,14 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: chk.c,v 1.17 2010/07/24 22:17:03 guenther Exp $"; +static char rcsid[] = "$OpenBSD: chk.c,v 1.18 2010/07/27 20:07:56 guenther Exp $"; #endif #include <stdlib.h> #include <ctype.h> #include <limits.h> +#include <stdbool.h> +#include <complex.h> #include <err.h> #include "lint2.h" |