Include <xlocale.h> for older macOS.
authorThomas Munro <[email protected]>
Tue, 13 Aug 2024 11:02:05 +0000 (23:02 +1200)
committerThomas Munro <[email protected]>
Tue, 13 Aug 2024 11:02:05 +0000 (23:02 +1200)
Commit 35eeea62 forgot to include <xlocale.h> when using locale_t
(which didn't seem to be required on newer Apple SDK as used by CI,
hence mistake).  Let's see if this fixes build farm animals longfin and
sifika.

src/port/chklocale.c

index 14d0e2c55794bfcff6daac04bf4ef58cae358f4a..dc2279179afed9dea873e2970694a4f6b8fe2e25 100644 (file)
 #include <langinfo.h>
 #endif
 
+#ifdef LOCALE_T_IN_XLOCALE_H
+#include <xlocale.h>
+#endif
+
 #include "mb/pg_wchar.h"