From owner-freebsd-bugs Mon Mar 24 19:10:15 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA05453 for bugs-outgoing; Mon, 24 Mar 1997 19:10:15 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA05447; Mon, 24 Mar 1997 19:10:09 -0800 (PST) Resent-Date: Mon, 24 Mar 1997 19:10:09 -0800 (PST) Resent-Message-Id: <199703250310.TAA05447@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.TAA04796;Mon; (8.8.5/8.8.5);, 24 Mar 1997 19:05:32.-0800 (PST) Message-Id: <199703250305.TAA04796@freefall.freebsd.org> Date: Mon, 24 Mar 1997 19:05:32 -0800 (PST) From: Thomas.Traylor@mci.com To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: misc/3089: /usr/include/sys/select.h causes compilation errors. Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 3089 >Category: misc >Synopsis: /usr/include/sys/select.h causes compilation errors. >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Mar 24 19:10:05 PST 1997 >Last-Modified: >Originator: Thomas Traylor >Organization: >Release: FreeBSD 2.2-Release >Environment: FreeBSD vulture.cs.mci.com 2.2-RELEASE FreeBSD 2.2-RELEASE #0: Wed Mar 19 17:02:44 MST 1997 root@:/usr/src/sys/compile/VULTURE i386 >Description: When sys/select.h is included in your souce code, compilation errors occur. It seems that the structure 'selinfo' (line 44) contains a reference to pid_t. pid_t has not been defined yet. The following are the error messages from gcc: In file included from t.c:1: /usr/include/sys/select.h:45: parse error before `pid_t' /usr/include/sys/select.h:45: warning: no semicolon at end of struct or union /usr/include/sys/select.h:47: parse error before `}' >How-To-Repeat: Compile the following code: #include main () { ; } >Fix: Put sys/types.h in sys/select.h or put sys/types.h in your code prior to sys/select.h This compiles with out error: #include #include main () { ; } >Audit-Trail: >Unformatted: