Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 May 2000 12:59:34 +1000 (EST)
From:      andrew@ugh.net.au
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/18538: sysinstall doesn't include enough headers
Message-ID:  <20000514025934.99AAEA837@starbug.ugh.net.au>

next in thread | raw e-mail | index | archive | help

>Number:         18538
>Category:       bin
>Synopsis:       sysinstall doesn't include enough headers
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 13 20:00:01 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000514025934.99AAEA837>