Return-Path: pg_adm@postgres.berkeley.edu Received: by postgres.Berkeley.EDU (5.61/1.29) id AA09424; Tue, 10 Aug 93 15:42:52 -0700 Date: Tue, 10 Aug 93 15:42:52 -0700 Message-Id: <9308102242.AA09424@postgres.Berkeley.EDU> From: jaws@pangaea.dme.nt.gov.au (James Woods 61-89-895257) Subject: Re: User Defined Functions... To: postgres@postgres.berkeley.edu Sender: pg_adm@postgres.berkeley.edu Cc: postgres@postgres.berkeley.edu I just found the patches I made to fix this bug: $ diff -c ./src/backend/tmp/libpq.h ./src/backend/tmp/libpq.orig.h *** ./src/backend/tmp/libpq.h Tue Apr 13 13:18:40 1993 --- ./src/backend/tmp/libpq.orig.h Tue Aug 4 03:47:51 1992 *************** *** 22,28 **** #include #include #include - #include /* jaws:24/3/93 added in for sockaddr_in */ #include "tmp/simplelists.h" #include "utils/exc.h" --- 22,27 ---- you will of course have to propogate this change to: ./include/libpq.h ./include/tmp/libpq.h If you don't have access to change the postgres include files, hassle your sys-admin and in the meantime just include netinet/in.h before the rest of the postgres include files in your code. I can't help you as far as switching off warnings within the file in gcc, but I think the above will solve your problems. While I'm at it here are a few more patches for 4.1: $ diff tmp/c.orig.h tmp/c.h -c *** tmp/c.orig.h Tue Feb 23 05:57:38 1993 --- tmp/c.h Tue Apr 13 13:53:49 1993 *************** *** 473,479 **** char *p )); #else /* PALLOC_DEBUG */ ! #if defined(PORTNAME_bsd44) || defined(PORTNAME_alpha) #include #else extern --- 473,479 ---- char *p )); #else /* PALLOC_DEBUG */ ! #if defined(PORTNAME_bsd44) || defined(PORTNAME_alpha) || defined(__GNUC__) #include #else extern $ diff tmp/postgres.orig.h tmp/postgres.h -c *** tmp/postgres.orig.h Mon Apr 19 08:27:29 1993 --- tmp/postgres.h Mon Apr 19 08:29:13 1993 *************** *** 525,531 **** --- 525,533 ---- * ---------------------------------------------------------------- */ + #ifndef X_H typedef uint32 Time; /* XXX this will disappear */ + #endif typedef uint32 RelativeTime; #define InvalidRelativeTime 0 *************** *** 550,556 **** --- 552,560 ---- * Section 8: old types being obsoleted * ---------------------------------------------------------------- */ + #ifndef X_H typedef long XID; + #endif #define CID unsigned short #define ABSTIME long #define RELTIME long James Woods jaws@pangaea.dme.nt.gov.au