Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 81B3C475B1E for ; Sun, 26 May 2002 17:01:08 -0400 (EDT) Received: from prod1-int.codesense.com (unknown [193.10.39.189]) by postgresql.org (Postfix) with ESMTP id C75BF475C94 for ; Sun, 26 May 2002 17:00:10 -0400 (EDT) Received: from 127.0.0.1 (c193-150-240-85.cm-upc.chello.se [193.150.240.85]) by prod1-int.codesense.com (8.11.4/8.11.4) with ESMTP id g4QKklZ04720; Sun, 26 May 2002 22:46:47 +0200 Date: Sun, 26 May 2002 23:00:51 +0200 From: Niclas Gustafsson X-Mailer: The Bat! (v1.60h) UNREG / CD5BF9353B3B7091 Reply-To: Niclas Gustafsson Organization: CodeSense AB X-Priority: 3 (Normal) Message-ID: <18238029213.20020526230051@codesense.com> To: Tom Lane Cc: pgsql-admin@postgresql.org Subject: Re: Problem with ucred.h building 7.2.1 In-Reply-To: <5642.1022429240@sss.pgh.pa.us> References: <5016112458.20020526165534@codesense.com> <5642.1022429240@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200205/223 X-Sequence-Number: 4398 > Niclas Gustafsson writes: >> I'm having some trouble compiling 7.2.1 on one of our machines, >> It's a linux box running SuSE 6.0, with kernel version 2.2.14. >> ... >> After searching the system I see that I do not have the ucred.h >> anywhere. >> However I find the ucred definition in /usr/include/linux/socket.h as > Yeah, we've heard a couple of prior reports to the effect that this code > is not sufficiently configurable. I'm a bit confused though ---- hba.c > pulls in , doesn't that include ? Seems > like it should work... Nope, It does not include linux/socket.h. It only includes the following: #include #include #include And noone of them includes linux/socket.h I made a rather crude insert into hba.h struct ucred { unsigned int pid; unsigned int uid; unsigned int gid; }; And with that it passed both the compilation and regression tests. Regards, Niclas Gustafsson