From: guenther Date: Tue, 27 Jul 2010 20:07:56 +0000 (+0000) Subject: Fix compilation on gcc2 platforms, where _Bool and _Complex aren't X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0a01a39c7fae5fa7d845282789aef9cd36d48e0b;p=openbsd 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@ --- 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"