RE: [HACKERS] AW: compilation problem on AIX - Mailing list pgsql-hackers

From Taral
Subject RE: [HACKERS] AW: compilation problem on AIX
Date
Msg-id 000701bdf6d0$0427f580$3b291f0a@taral
Whole thread Raw
In response to Re: [HACKERS] AW: compilation problem on AIX  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> Marc had the right idea: a configure test is the only real way to
> discover how getsockname() is declared.  A small problem is that
> configure can only detect outright compilation failures, not warnings.
> That's probably good enough, but people with nonstandard definitions
> of getsockname may have to live with looking at warnings.

Just redeclare the function with the parameters you expect. Most compilers
will fail if you redeclare with parameters of different types or different
number of parameters, but silently ignore functionally identical prototype
lines.

Taral


pgsql-hackers by date:

Previous
From: Oleg Bartunov
Date:
Subject: What about LIMIT in SELECT ?
Next
From: Paul A Vixie
Date:
Subject: Re: [HACKERS] Re: inet/cidr/bind