From proff@suburbia.net  Fri Dec 27 09:28:57 1996
Received: from pdx1.world.net (pdx1.world.net [192.243.32.18])
          by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id JAA29164
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Dec 1996 09:28:57 -0800 (PST)
Received: from suburbia.net (suburbia.net [203.4.184.1]) by pdx1.world.net (8.7.5/8.7.3) with SMTP id JAA29760 for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Dec 1996 09:29:27 -0800 (PST)
Received: (qmail 17721 invoked by uid 110); 27 Dec 1996 17:28:26 -0000
Message-Id: <19961227172826.17720.qmail@suburbia.net>
Date: 27 Dec 1996 17:28:26 -0000
From: proff@suburbia.net
Reply-To: proff@suburbia.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: include/sys/dirent.h needs to include sys/type.h
X-Send-Pr-Version: 3.2

>Number:         2300
>Category:       misc
>Synopsis:       include/sys/dirent.h needs to include sys/type.h
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 27 09:30:01 PST 1996
>Closed-Date:    Sun Feb 23 11:35:25 PST 1997
>Last-Modified:  Sun Feb 23 11:36:56 PST 1997
>Originator:     Julian Assange
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

	

>Description:

In file included from /usr/include/dirent.h:43,
                 from pr_training.cc:21:
/usr/include/sys/dirent.h:52: syntax error before `;'
/usr/include/sys/dirent.h:53: syntax error before `;'
/usr/include/sys/dirent.h:54: syntax error before `;'
/usr/include/sys/dirent.h:55: syntax error before `;'
gmake[1]: *** [pr_training.o] Error 1

dirent.h should include <sys/types.h>

This is a bit of a philosphical issue. In my view all include
files should resolve all their own dependencies. This is the
POSIX view also - however FreeBSD has a lot of non-complience in
this area.

	

>How-To-Repeat:

	

>Fix:
	
#include <sys/types.h>

	

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: gpalmer 
Responsible-Changed-When: Fri Dec 27 14:44:53 PST 1996 
Responsible-Changed-Why:  
Misfiled 
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Sun Feb 23 11:35:25 PST 1997 
State-Changed-Why:  
Bde said that he thinks POSIX requires the application 
to include types.h in this case.  We may change this someyear, 
but not now. 
>Unformatted:
