From owner-freebsd-current Mon Aug 19 11:47:08 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA27386 for current-outgoing; Mon, 19 Aug 1996 11:47:08 -0700 (PDT) Received: from quagmire.ki.net (root@quagmire.ki.net [205.150.102.51]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA27349 for ; Mon, 19 Aug 1996 11:47:01 -0700 (PDT) Received: from localhost (scrappy@localhost) by quagmire.ki.net (8.7.5/8.7.5) with SMTP id OAA05668 for ; Mon, 19 Aug 1996 14:47:02 -0400 (EDT) Date: Mon, 19 Aug 1996 14:47:02 -0400 (EDT) From: "Marc G. Fournier" To: current@freebsd.org Subject: Odd problem with include files... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi... I'm working on Postgres95 under 2.2-Current, and keep running across: In file included from /home/staff/scrappy/postgres/base/postgres95/src/backend/./storage/ipc.h:23, from /home/staff/scrappy/postgres/base/postgres95/src/backend/access/common/heaptuple.c:27: /usr/include/sys/ipc.h:60: parse error before `key_t' /usr/include/sys/ipc.h:60: warning: no semicolon at end of struct or union If I look in 'storage/ipc.h', the includes are called as: #include #ifndef _IPC_ #define _IPC_ #include #endif And key_t is defined in sys/types.h...so it should be fine for ipc.h... If I add: typedef long key_t; /* IPC key (for Sys V IPC) */ to sys/ipc.h, it compiles fine...looking at sys/types.h, I can't see any 'ifdef's that would be affecting this... Any ideas as to why its not being defined correctly? Marc G. Fournier scrappy@ki.net Systems Administrator @ ki.net scrappy@freebsd.org