Return-Path: pg_adm@postgres.berkeley.edu
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA19495; Thu, 5 Aug 93 18:41:42 -0700
Date: Thu, 5 Aug 93 18:41:42 -0700
Message-Id: <9308060141.AA19495@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

> [c] ->gcc -c -I. -I/store3/postgres/src/lib/H s.c
> In file included from ./tmp/libpq-fe.h:21, from s.c:2:
> ./tmp/libpq.h:215: warning: `struct sockaddr_in' declared inside parameter list
> ./tmp/libpq.h:215: warning: its scope is only this definition or declaration,
> ./tmp/libpq.h:215: warning: which is probably not what you want.
> ./tmp/libpq.h:216: warning: `struct sockaddr_in' declared inside parameter list
> 

This problem is caused by the fact that gcc is an ANSI compiler and I thing that
in general postgres has been written and tested with a non ANSI compiler, but
an attempt to support ANSI has been made in the include files.  I remmember this
particular error from 4.0.1 but it has been fixed in 4.1.  What you need to do
is find the include file which defines `struct sockaddr_in' and include in
tmp/libpq-fe.h.

I do have a number of patches to get 4.1 to work with gcc (though I gave up
trying to compile postgres itself with gcc) but I have forgotten what I did
for 4.0.1.

James Woods
jaws@pangaea.dme.nt.gov.au
