Re: [RFC] building postgres with meson -v

From: Andres Freund <andres(at)anarazel(dot)de>
To: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, John Naylor <john(dot)naylor(at)enterprisedb(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Josef Šimánek <josef(dot)simanek(at)gmail(dot)com>
Subject: Re: [RFC] building postgres with meson -v
Date: 2021-11-04 18:48:13
Message-ID: 20211104184813.ekr2tbvlm5ymdtiy@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2021-11-04 19:17:05 +0100, Peter Eisentraut wrote:
> On 01.11.21 00:24, Andres Freund wrote:
> > - remaining hardcoded configure tests (e.g. ACCEPT_TYPE_ARG*)
>
> I think we can get rid of that one.

Oh, nice!

I was somewhat confused by "unsigned int PASCAL" as a type.

> That test originally catered to some strange edge cases where the third
> argument was size_t that was not the same size as int. That is long gone,
> if it ever really existed. All systems currently of interest use either
> socklen_t or int, and socklen_t is always int. (A few build farm animals
> report size_t, but they are all 32-bit.)

> diff --git a/src/include/c.h b/src/include/c.h
> index c8ede08273..7c790f557e 100644
> --- a/src/include/c.h
> +++ b/src/include/c.h
> @@ -408,6 +408,10 @@ typedef unsigned char bool;
> * ----------------------------------------------------------------
> */
>
> +#ifndef HAVE_SOCKLEN_T
> +typedef socklen_t int;
> +#endif

I'd put this in port.h instead of c.h, or is there a reason not to do so?

Probably worth putting this in fairly soon independent of whether anything
happens wrt meson?

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2021-11-04 18:58:54 Re: Time to drop plpython2?
Previous Message Peter Eisentraut 2021-11-04 18:17:05 Re: [RFC] building postgres with meson -v