aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2024-08-13 23:02:05 +1200
committerThomas Munro <tmunro@postgresql.org>2024-08-13 23:02:05 +1200
commit52ea7f0e0545e8b7e5f28cceddadbfb184f41a4f (patch)
tree1839e63759cd0e6f51deba02fd299a6288fa591d /src
parent35eeea62302260ec07fd11b287e488768d4543e2 (diff)
downloadpostgresql-52ea7f0e0545e8b7e5f28cceddadbfb184f41a4f.tar.gz
postgresql-52ea7f0e0545e8b7e5f28cceddadbfb184f41a4f.zip
Include <xlocale.h> for older macOS.
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.
Diffstat (limited to 'src')
-rw-r--r--src/port/chklocale.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/port/chklocale.c b/src/port/chklocale.c
index 14d0e2c5579..dc2279179af 100644
--- a/src/port/chklocale.c
+++ b/src/port/chklocale.c
@@ -23,6 +23,10 @@
#include <langinfo.h>
#endif
+#ifdef LOCALE_T_IN_XLOCALE_H
+#include <xlocale.h>
+#endif
+
#include "mb/pg_wchar.h"