Re: [PATCH] Fix build failure on macOS 26.2 SDK due to missing nl_langinfo_l declaration - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCH] Fix build failure on macOS 26.2 SDK due to missing nl_langinfo_l declaration
Date
Msg-id 1380892.1773945466@sss.pgh.pa.us
Whole thread Raw
In response to [PATCH] Fix build failure on macOS 26.2 SDK due to missing nl_langinfo_l declaration  (Jianghua Yang <yjhjstz@gmail.com>)
List pgsql-hackers
Jianghua Yang <yjhjstz@gmail.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



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: pg_get__*_ddl consolidation
Next
From: Nathan Bossart
Date:
Subject: Re: Feature freeze timezone change request