Prototype is
#include <signal.h>
int sigwait (sigset_t *set);
but fe_secure.c calls sigwait(&sigpipe_sigset, &signo);
so there's effectively one argument too much!
reards
On Fri, 17 Dec 2004, Tom Lane wrote:
> Date: Fri, 17 Dec 2004 12:49:59 -0500
> From: Tom Lane <tgl@sss.pgh.pa.us>
> To: Bruce Momjian <pgman@candle.pha.pa.us>
> Cc: ohp@pyrenet.fr, pgsql-hackers list <pgsql-hackers@postgresql.org>
> Subject: Re: [HACKERS] Call for port reports
>
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > ohp@pyrenet.fr wrote:
> >> UX:acomp: ERREUR: "fe-secure.c", ligne 1316 : prototype mismatch: 2 args passed, 1 expected: sigwait()
>
> > What is your prototype for sigwait()?
>
> Whatever it is, it doesn't agree with the Single Unix Spec:
> http://www.opengroup.org/onlinepubs/007908799/xsh/sigwait.html
>
> On HPUX 10.20 I see
>
> #include <pthread.h>
>
> int sigwait(sigset_t *set);
>
> and indeed --enable-thread-safety doesn't work on this platform,
> although we fail the thread safety configure test so there are other
> problems beside sigwait().
>
> My feeling about this is "too bad, we are not supporting threading on
> platforms whose pthread.h doesn't follow SUS".
>
> regards, tom lane
>
--
Olivier PRENANT Tel: +33-5-61-50-97-00 (Work)
6, Chemin d'Harraud Turrou +33-5-61-50-97-01 (Fax)
31190 AUTERIVE +33-6-07-63-80-64 (GSM)
FRANCE Email: ohp@pyrenet.fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)