From owner-freebsd-bugs Tue Aug 10 6:52:23 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 758F414D5F for ; Tue, 10 Aug 1999 06:52:22 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id GAA87487; Tue, 10 Aug 1999 06:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Tue, 10 Aug 1999 06:50:02 -0700 (PDT) Message-Id: <199908101350.GAA87487@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Martin Cracauer Subject: Re: bin/13029: regex.h should include sys/types.h Reply-To: Martin Cracauer Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/13029; it has been noted by GNATS. From: Martin Cracauer To: David Gilbert 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 , 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 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? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message