From mi@ALDAN.star89.galstar.com  Wed Dec 13 10:15:17 1995
Received: from aldan (PPP-75-7.BU.EDU [128.197.7.155])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA11077
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Dec 1995 10:15:07 -0800 (PST)
Received: (from mi@localhost) by aldan (8.6.12/8.6.12) id NAA06369; Wed, 13 Dec 1995 13:13:35 -0500
Message-Id: <199512131813.NAA06369@aldan>
Date: Wed, 13 Dec 1995 13:13:35 -0500
From: mi@ALDAN.star89.galstar.com
Reply-To: mi@ALDAN.star89.galstar.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: regex.h
X-Send-Pr-Version: 3.2

>Number:         891
>Category:       misc
>Synopsis:       regex.h relies on sys/types.h, but does not include it
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 13 10:20:01 PST 1995
>Closed-Date:    Tue Feb 6 18:27:09 PST 1996
>Last-Modified:  Tue Feb  6 18:28:01 PST 1996
>Originator:     &khail Teterin
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
>Environment:

	gcc 2.6.? (the original)

>Description:

	regex.h uses off_t as already defined, but only includes sys/cdefs.h .
	off_t is defined in sys/types.h

>How-To-Repeat:

	I hit this builing xrn.
	Just make a c file with only #include <regex.h>

>Fix:
	
	Put #include <sys/types.h> in front. But I do not think, this is
	how it should be.

>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: FreeBSD-gnats-submit@FreeBSD.ORG, mi@ALDAN.star89.galstar.com
Cc:  Subject: Re: misc/891: regex.h
Date: Fri, 15 Dec 1995 05:55:52 +1100

 >>Description:
 
 >	regex.h uses off_t as already defined, but only includes sys/cdefs.h .
 >	off_t is defined in sys/types.h
 
 >>Fix:
 >	
 >	Put #include <sys/types.h> in front. But I do not think, this is
 >	how it should be.
 
 It's standard braindamage that applications have to include <sys/types.h>
 before any POSIX header.  This is even documented for <regex.h>.
 
 Bruce
State-Changed-From-To: open->closed 
State-Changed-By: pst 
State-Changed-When: Tue Feb 6 18:27:09 PST 1996 
State-Changed-Why:  
This behavior is documented by POSIX.  It's standard brain-dammage. 
We won't fix this. 
>Unformatted:
