Subject: kern/2864: Incorrect #include in sys/dir.h
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/18/1996 17:58:08
>Number:         2864
>Category:       kern
>Synopsis:       Incorrect #include in sys/dir.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 18 18:05:01 1996
>Originator:     Paul Goyette
>Release:        1.2A
System: NetBSD 1.2 NetBSD 1.2 (PGOYETTE) #92: Sun Sep 22 17:26:40 PDT 1996 mac68k

	src/sys/sys/dir.h currently does a #include <dirent.h>
	This causes any kernel module which includes dir.h to fail to 
	compile, since it can't find dirent.h in the -I search paths.

	This is currently only a problem on the experimental macfs file
	system code that I've been working on with Bill Studenmund;  one
	module in that code does a #include <sys/dir.h>.  
	#include <sys/dir.h> in any kernel module will reproduce the problem.
	The following patch corrects the problem:

*** src/sys/sys/dir.h	Fri Oct 18 03:44:04 1996
--- /usr/src/sys/sys/dir.h	Fri Oct 13 19:56:17 1995
*** 43,49 ****
  #ifndef _SYS_DIR_H_
  #define	_SYS_DIR_H_
! #include <sys/dirent.h>
   * Backwards compatibility.
--- 43,49 ----
  #ifndef _SYS_DIR_H_
  #define	_SYS_DIR_H_
! #include <dirent.h>
   * Backwards compatibility.