Re: [HACKERS] AW: compilation problem on AIX

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] AW: compilation problem on AIX
Date: 1998-10-13 14:38:58
Message-ID: 3613.908289538@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andreas Zeugswetter <andreas(dot)zeugswetter(at)telecom(dot)at> writes:
> I would simply do:

> #ifndef size_t
> typedef int size_t
> #endif

> #ifndef socklen_t
> typedef size_t socklen_t
> #endif

That has no hope of working, since typedefs generally are not macros.

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.

> and use socklen_t which is now standard for socket functions

It is? The machines I have access to think the parameter is plain,
unvarnished "int".

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Constantin Teodorescu 1998-10-13 14:46:25 pgtclCmds.c has bugs that have been removed once !!!!!!
Previous Message Marc G. Fournier 1998-10-13 14:33:15 Re: [HACKERS] Dumping of views -- done!