From owner-freebsd-hackers Tue Sep 23 19:49:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA23911 for hackers-outgoing; Tue, 23 Sep 1997 19:49:54 -0700 (PDT) Received: from fly.HiWAAY.net (root@fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA23905 for ; Tue, 23 Sep 1997 19:49:46 -0700 (PDT) Received: from nospam.hiwaay.net (tnt2-52.HiWAAY.net [208.147.148.52]) by fly.HiWAAY.net (8.8.6/8.8.6) with ESMTP id VAA25939 for ; Tue, 23 Sep 1997 21:49:08 -0500 (CDT) Received: from nospam.hiwaay.net (localhost [127.0.0.1]) by nospam.hiwaay.net (8.8.7/8.8.4) with ESMTP id VAA28533 for ; Tue, 23 Sep 1997 21:49:07 -0500 (CDT) Message-Id: <199709240249.VAA28533@nospam.hiwaay.net> X-Mailer: exmh version 2.0zeta 7/24/97 To: freebsd-hackers@freebsd.org Subject: NGROUPS in include file(s) From: dkelly@HiWAAY.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 23 Sep 1997 21:49:04 -0500 Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Ran across a little gotcha while porting to FreeBSD 2.2.2 where the didn't have the #ifdef __FreeBSD__ shown below but needed it in order to get a definition of NGROUPS. Take out my #include and get: /usr/include/sys/ucred.h:47: `NGROUPS' undeclared here (not in a function) This mess starts in Am wondering if the include tree is supposed to include other include files when making references to external items? Or am I supposed to hunt them down and include them all myself? This is the really tough demo program: #include #include #ifdef __FreeBSD__ #include #endif #include void main (void) { printf ("Hello World!\n"); } -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system.