Re: [PATCH] Fix build failure on macOS 26.2 SDK due to missing nl_langinfo_l declaration

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jianghua Yang <yjhjstz(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] Fix build failure on macOS 26.2 SDK due to missing nl_langinfo_l declaration
Date: 2026-03-19 18:37:46
Message-ID: 1380892.1773945466@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jianghua Yang <yjhjstz(at)gmail(dot)com> writes:
> Include <xlocale.h> explicitly on Apple platforms. This header
> declares nl_langinfo_l() unconditionally and is the standard way
> to access locale-specific extensions on macOS.

What version are you testing? v18 and HEAD already unconditionally
include <xlocale.h> in our c.h (around line 80 in HEAD), and older
branches don't use nl_langinfo_l().

See also [1].

regards, tom lane

[1] https://www.postgresql.org/message-id/1026321.1765562828%40sss.pgh.pa.us

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2026-03-19 18:58:51 Re: Feature freeze timezone change request
Previous Message Andrew Dunstan 2026-03-19 18:34:22 pg_get__*_ddl consolidation