From andrew@ugh.net.au  Sat May 13 19:59:34 2000
Return-Path: <andrew@ugh.net.au>
Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37])
	by hub.freebsd.org (Postfix) with ESMTP id 2CB5B37BC15
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 13 May 2000 19:59:33 -0700 (PDT)
	(envelope-from andrew@ugh.net.au)
Received: by starbug.ugh.net.au (Postfix, from userid 1000)
	id 99AAEA837; Sun, 14 May 2000 12:59:34 +1000 (EST)
Message-Id: <20000514025934.99AAEA837@starbug.ugh.net.au>
Date: Sun, 14 May 2000 12:59:34 +1000 (EST)
From: andrew@ugh.net.au
Reply-To: andrew@ugh.net.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: sysinstall doesn't include enough headers
X-Send-Pr-Version: 3.2

>Number:         18538
>Category:       bin
>Synopsis:       sysinstall doesn't include enough headers
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 13 20:00:01 PDT 2000
>Closed-Date:    Fri Jul 14 09:08:44 PDT 2000
>Last-Modified:  Fri Jul 14 09:09:36 PDT 2000
>Originator:     Andrew
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
UgH!
>Environment:

	

>Description:

When compiling sysinstall the compiler warns of an implicit declaration of
sysctlbyname. This is because system.c doesn't include sys/sysctl.h.
According to sysctl(3) including sys/sysctl.h also requires sys/types.h to be
included.

>How-To-Repeat:

	

>Fix:


--- system.c.orig	Sun May 14 12:53:20 2000
+++ system.c	Sun May 14 12:54:03 2000
@@ -24,6 +24,8 @@
 #include <sys/fcntl.h>
 #include <sys/ioctl.h>
 #include <sys/stat.h>
+#include <sys/types.h>
+#include <sys/sysctl.h>
 
 
 /* Where we stick our temporary expanded doc file */

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jhb 
State-Changed-When: Fri Jul 14 09:08:44 PDT 2000 
State-Changed-Why:  
I just MFC'd this from -current, wish I had known about the PR earlier. 

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