From: Sascha Wildner Date: Wed, 6 Nov 2013 09:31:04 +0000 (+0100) Subject: libwrap: Make it build with -std=gnu99. X-Git-Tag: v3.7.1~15 X-Git-Url: https://gitweb.dragonflybsd.org/~tuxillo/dragonfly.git/commitdiff_plain/ed2fcb49bc9ec16d72f277779516b2dbc8178ebd libwrap: Make it build with -std=gnu99. --- diff --git a/contrib/tcp_wrappers/clean_exit.c b/contrib/tcp_wrappers/clean_exit.c index cb9d4f5080..41caaf0306 100644 --- a/contrib/tcp_wrappers/clean_exit.c +++ b/contrib/tcp_wrappers/clean_exit.c @@ -13,6 +13,7 @@ static char sccsid[] = "@(#) clean_exit.c 1.4 94/12/28 17:42:19"; #endif #include +#include extern void exit(); diff --git a/contrib/tcp_wrappers/hosts_access.c b/contrib/tcp_wrappers/hosts_access.c index e7b5d942c1..4946ed790c 100644 --- a/contrib/tcp_wrappers/hosts_access.c +++ b/contrib/tcp_wrappers/hosts_access.c @@ -17,7 +17,6 @@ * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. * * $FreeBSD: src/contrib/tcp_wrappers/hosts_access.c,v 1.3.2.1 2000/07/18 08:34:54 ume Exp $ - * $DragonFly: src/contrib/tcp_wrappers/hosts_access.c,v 1.3 2005/04/29 00:37:08 joerg Exp $ */ #ifndef lint @@ -45,6 +44,8 @@ static char sccsid[] = "@(#) hosts_access.c 1.21 97/02/12 02:13:22"; #ifdef INET6 #include #endif +#include +#include extern char *fgets(); diff --git a/contrib/tcp_wrappers/options.c b/contrib/tcp_wrappers/options.c index bcb26b4da5..d30d5d5e80 100644 --- a/contrib/tcp_wrappers/options.c +++ b/contrib/tcp_wrappers/options.c @@ -49,6 +49,7 @@ static char sccsid[] = "@(#) options.c 1.17 96/02/11 17:01:31"; #include #include #include +#include #ifndef MAXPATHNAMELEN #define MAXPATHNAMELEN BUFSIZ diff --git a/contrib/tcp_wrappers/percent_x.c b/contrib/tcp_wrappers/percent_x.c index c95a1ea414..9b37329cf3 100644 --- a/contrib/tcp_wrappers/percent_x.c +++ b/contrib/tcp_wrappers/percent_x.c @@ -19,6 +19,7 @@ static char sccsid[] = "@(#) percent_x.c 1.4 94/12/28 17:42:37"; #include #include #include +#include extern void exit(); diff --git a/contrib/tcp_wrappers/rfc931.c b/contrib/tcp_wrappers/rfc931.c index faacd48969..9a8fc52ec9 100644 --- a/contrib/tcp_wrappers/rfc931.c +++ b/contrib/tcp_wrappers/rfc931.c @@ -9,7 +9,6 @@ * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. * * $FreeBSD: src/contrib/tcp_wrappers/rfc931.c,v 1.2.2.1 2000/07/18 16:41:11 dwmalone Exp $ - * $DragonFly: src/contrib/tcp_wrappers/rfc931.c,v 1.2 2003/06/17 04:24:06 dillon Exp $ */ #ifndef lint @@ -26,6 +25,7 @@ static char sccsid[] = "@(#) rfc931.c 1.10 95/01/02 16:11:34"; #include #include #include +#include #ifndef SEEK_SET #define SEEK_SET 0 diff --git a/contrib/tcp_wrappers/shell_cmd.c b/contrib/tcp_wrappers/shell_cmd.c index dc46f925b0..7667e13301 100644 --- a/contrib/tcp_wrappers/shell_cmd.c +++ b/contrib/tcp_wrappers/shell_cmd.c @@ -16,11 +16,13 @@ static char sccsid[] = "@(#) shell_cmd.c 1.5 94/12/28 17:42:44"; #include #include +#include #include #include #include #include #include +#include extern void exit(); diff --git a/contrib/tcp_wrappers/update.c b/contrib/tcp_wrappers/update.c index b31c53976d..ec8870922c 100644 --- a/contrib/tcp_wrappers/update.c +++ b/contrib/tcp_wrappers/update.c @@ -13,7 +13,6 @@ * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. * * $FreeBSD: src/contrib/tcp_wrappers/update.c,v 1.2 2000/02/03 10:27:00 shin Exp $ - * $DragonFly: src/contrib/tcp_wrappers/update.c,v 1.2 2003/06/17 04:24:06 dillon Exp $ */ #ifndef lint @@ -25,6 +24,7 @@ static char sccsid[] = "@(#) update.c 1.1 94/12/28 17:42:56"; #include #include #include +#include /* Local stuff. */ diff --git a/lib/libwrap/Makefile b/lib/libwrap/Makefile index 1b645a1747..ccd7b3e738 100644 --- a/lib/libwrap/Makefile +++ b/lib/libwrap/Makefile @@ -6,7 +6,6 @@ SHLIB_MAJOR= 4 INCS= tcpd.h MAN= hosts_access.3 MAN+= hosts_access.5 hosts_options.5 -CSTD?= gnu89 WARNS?= 1 .PATH: ${.CURDIR}/../../contrib/tcp_wrappers