From nobody@FreeBSD.org  Mon Feb 11 10:04:35 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 831D2E79
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Feb 2013 10:04:35 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 5C9321838
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Feb 2013 10:04:35 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r1BA4X0Z065163
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Feb 2013 10:04:33 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r1BA4Xxt065162;
	Mon, 11 Feb 2013 10:04:33 GMT
	(envelope-from nobody)
Message-Id: <201302111004.r1BA4Xxt065162@red.freebsd.org>
Date: Mon, 11 Feb 2013 10:04:33 GMT
From: Jukka Ukkonen <jau@iki.fi>
To: freebsd-gnats-submit@FreeBSD.org
Subject: TCP wrappers caused quite a lot of warnings during "make buildworld"
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         176026
>Category:       kern
>Synopsis:       [tcp] [patch] TCP wrappers caused quite a lot of warnings during "make buildworld"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 11 10:10:01 UTC 2013
>Closed-Date:    
>Last-Modified:  Tue Feb 12 03:37:04 UTC 2013
>Originator:     Jukka Ukkonen
>Release:        9.1-STABLE
>Organization:
-----
>Environment:
FreeBSD sleipnir 9.1-STABLE FreeBSD 9.1-STABLE #0 r246649M: Mon Feb 11 09:30:26 EET 2013     root@sleipnir:/usr/obj/usr/src/sys/Sleipnir  amd64
>Description:
TCP wrappers caused quite a lot of warnings during "make buildworld".


>How-To-Repeat:
Direct the output from "make buildworld" to a file and look for warnings generated while compiling tcp_wrappers.

>Fix:
Apply the attached patch.


Patch attached with submission follows:

--- contrib/tcp_wrappers/rfc931.c.orig	2013-02-11 08:22:46.000000000 +0200
+++ contrib/tcp_wrappers/rfc931.c	2013-02-11 08:23:10.000000000 +0200
@@ -17,6 +17,7 @@
 
 /* System libraries. */
 
+#include <unistd.h>
 #include <stdio.h>
 #include <syslog.h>
 #include <sys/types.h>
--- /usr/src/contrib/tcp_wrappers/clean_exit.c.orig	2013-02-11 08:26:58.000000000 +0200
+++ /usr/src/contrib/tcp_wrappers/clean_exit.c	2013-02-11 08:27:17.000000000 +0200
@@ -12,6 +12,7 @@
 static char sccsid[] = "@(#) clean_exit.c 1.4 94/12/28 17:42:19";
 #endif
 
+#include <unistd.h>
 #include <stdio.h>
 
 extern void exit();
--- /usr/src/contrib/tcp_wrappers/hosts_access.c.orig	2013-02-11 08:30:42.000000000 +0200
+++ /usr/src/contrib/tcp_wrappers/hosts_access.c	2013-02-11 08:31:20.000000000 +0200
@@ -35,6 +35,8 @@
 #endif
 #include <netinet/in.h>
 #include <arpa/inet.h>
+#include <stdlib.h>
+#include <unistd.h>
 #include <stdio.h>
 #include <syslog.h>
 #include <ctype.h>
--- /usr/src/contrib/tcp_wrappers/options.c.orig	2013-02-11 08:32:30.000000000 +0200
+++ /usr/src/contrib/tcp_wrappers/options.c	2013-02-11 08:33:02.000000000 +0200
@@ -41,6 +41,8 @@
 #include <sys/socket.h>
 #include <sys/stat.h>
 #include <netinet/in.h>
+#include <stdlib.h>
+#include <unistd.h>
 #include <netdb.h>
 #include <stdio.h>
 #define SYSLOG_NAMES
--- /usr/src/contrib/tcp_wrappers/percent_x.c.orig	2013-02-11 08:34:16.000000000 +0200
+++ /usr/src/contrib/tcp_wrappers/percent_x.c	2013-02-11 08:34:34.000000000 +0200
@@ -16,6 +16,7 @@
 
 /* System libraries. */
 
+#include <unistd.h>
 #include <stdio.h>
 #include <syslog.h>
 #include <string.h>
--- /usr/src/contrib/tcp_wrappers/shell_cmd.c.orig	2013-02-11 08:36:21.000000000 +0200
+++ /usr/src/contrib/tcp_wrappers/shell_cmd.c	2013-02-11 08:38:47.000000000 +0200
@@ -16,6 +16,8 @@
 
 #include <sys/types.h>
 #include <sys/param.h>
+#include <sys/wait.h>
+#include <unistd.h>
 #include <signal.h>
 #include <stdio.h>
 #include <syslog.h>


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Feb 12 03:36:49 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176026 
>Unformatted:
