From 0a01a39c7fae5fa7d845282789aef9cd36d48e0b Mon Sep 17 00:00:00 2001 From: guenther Date: Tue, 27 Jul 2010 20:07:56 +0000 Subject: [PATCH] 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@ --- usr.bin/xlint/lint1/decl.c | 6 ++++-- 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 #include #include #include +#include +#include #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 #include #include +#include +#include #include #include "lint2.h" -- 2.20.1