Subject: kern/2864: Incorrect #include in sys/dir.h
To: None <gnats-bugs@gnats.netbsd.org>
From: None <paul@pgoyette.bdt.com>
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
>Last-Modified:
>Originator: Paul Goyette
>Organization:
>Release: 1.2A
>Environment:
System: NetBSD pgoyette.bdt.com 1.2 NetBSD 1.2 (PGOYETTE) #92: Sun Sep 22 17:26:40 PDT 1996 paul@pgoyette.bdt.com:/home/paul/src/sys/arch/mac68k/compile/PGOYETTE mac68k
>Description:
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>.
>How-To-Repeat:
#include <sys/dir.h> in any kernel module will reproduce the problem.
>Fix:
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.
>Audit-Trail:
>Unformatted: