From dgilbert@strike.velocet.ca Sun Aug  8 08:43:07 1999
Return-Path: <dgilbert@strike.velocet.ca>
Received: from strike.velocet.ca (strike.velocet.ca [209.167.225.34])
	by hub.freebsd.org (Postfix) with ESMTP id C70B614F4A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  8 Aug 1999 08:43:04 -0700 (PDT)
	(envelope-from dgilbert@strike.velocet.ca)
Received: (from dgilbert@localhost)
	by strike.velocet.ca (8.9.3/8.9.2) id LAA61376;
	Sun, 8 Aug 1999 11:41:43 -0400 (EDT)
	(envelope-from dgilbert)
Message-Id: <199908081541.LAA61376@strike.velocet.ca>
Date: Sun, 8 Aug 1999 11:41:43 -0400 (EDT)
From: David Gilbert <dgilbert@velocet.ca>
Sender: dgilbert@strike.velocet.ca
Reply-To: dgilbert@velocet.ca
To: FreeBSD-gnats-submit@freebsd.org
Subject: regex.h should include sys/types.h
X-Send-Pr-Version: 3.2

>Number:         13029
>Category:       bin
>Synopsis:       Subject: regex.h should include sys/types.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug  8 08:50:00 PDT 1999
>Closed-Date:    Wed Aug 11 02:27:25 PDT 1999
>Last-Modified:  Wed Aug 11 02:27:59 PDT 1999
>Originator:     David Gilbert
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
Velocet Communications
>Environment:

	FreeBSD-3.2-STABLE (roughly may)

>Description:

	programs that include regex.h without including sys/types.h fail
to compile

>How-To-Repeat:

	The current version of siag is an example.

>Fix:
	
	workaround: include sys/types.h first.


>Release-Note:
>Audit-Trail:

From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To: dgilbert@velocet.ca
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: bin/13029: regex.h should include sys/types.h
Date: Sun, 8 Aug 1999 12:04:31 -0400 (EDT)

 <<On Sun, 8 Aug 1999 11:41:43 -0400 (EDT), David Gilbert <dgilbert@velocet.ca> said:
 
 > 	programs that include regex.h without including sys/types.h fail
 > to compile
 
 <sys/types.h> is a documented prerequisite of <regex.h>, sanctioned by
 P1003.2.
 
 -GAWollman
 
 

From: Martin Cracauer <cracauer@cons.org>
To: David Gilbert <dgilbert@velocet.ca>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/13029: regex.h should include sys/types.h
Date: Tue, 10 Aug 1999 15:36:10 +0200

 In <owner-freebsd-bugsATFreeBSD.ORG--199908081541.LAA61376@strike.velocet.ca>, David Gilbert wrote: 
 > 
 > >Number:         13029
 > >Category:       bin
 > >Synopsis:       Subject: regex.h should include sys/types.h
 
 As stated in the man page, you have to include sys/types by yourself
 before regex.h
 
 A reason why this such things are done is that sys/types narrows down
 the choice of identifiers you may use in your program. For each header
 file, there's a list of reserved identifies. If you include
 sys/types.h by yourself, you will know that you have to avoid them. If
 some other header file with a different reserved identifier list
 silently includes a file with other reservations, the user don't
 recognize.
 
 Martin
 -- 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 Martin Cracauer <cracauer@bik-gmbh.de> http://www.bik-gmbh.de/~cracauer/
 "Where do you want to do today?" Hard to tell running your calendar 
  program on a junk operating system, eh?
 
State-Changed-From-To: open->closed 
State-Changed-By: n_hibma 
State-Changed-When: Wed Aug 11 02:27:25 PDT 1999 
State-Changed-Why:  
Good reason why including types.h is a bad thing is given. 
>Unformatted:
