Subject: kern/2138: sys/dir.h has bad include
To: None <gnats-bugs@NetBSD.ORG>
From: Gordon W. Ross <gwr@mc.com>
List: netbsd-bugs
Date: 02/27/1996 11:36:42
>Number: 2138
>Category: kern
>Synopsis: sys/dir.h has bad include
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Feb 27 12:05:01 1996
>Last-Modified:
>Originator: Gordon W. Ross
>Organization:
NetBSD
>Release: NetBSD-current 26 Feb 1996
>Environment:
System: NetBSD venus 1.0A NetBSD 1.0A (GENERIC) #43: Thu Sep 28 14:41:22 EDT 1995 gwr@venus:/play/gwr/netbsd/work/src/sys/arch/sun3/compile/GENERIC sun3
>Description:
It is not possible to build the kernel using ONLY files
under /usr/src/sys because sys/dir.h tries to pull in a
file from /usr/include (namely <dirent.h>).
>How-To-Repeat:
Try cross-compiling a kernel with -nostdinc etc.
or build under an isolated src/sys directory.
>Fix:
*** dir.h.~1~ Sat Feb 3 23:27:49 1996
--- dir.h Tue Feb 27 11:30:47 1996
***************
*** 43,49 ****
#ifndef _SYS_DIR_H_
#define _SYS_DIR_H_
! #include <dirent.h>
/*
* Backwards compatibility.
--- 43,49 ----
#ifndef _SYS_DIR_H_
#define _SYS_DIR_H_
! #include <sys/dirent.h>
/*
* Backwards compatibility.
>Audit-Trail:
>Unformatted: