summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/pg_locale.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/utils/adt/pg_locale.c')
-rw-r--r--src/backend/utils/adt/pg_locale.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c
index 0491df1839..401440afae 100644
--- a/src/backend/utils/adt/pg_locale.c
+++ b/src/backend/utils/adt/pg_locale.c
@@ -937,6 +937,7 @@ lc_ctype_is_c(Oid collation)
/* simple subroutine for reporting errors from newlocale() */
+#ifdef HAVE_LOCALE_T
static void
report_newlocale_failure(const char *localename)
{
@@ -955,6 +956,7 @@ report_newlocale_failure(const char *localename)
errdetail("The operating system could not find any locale data for the locale name \"%s\".",
localename) : 0)));
}
+#endif /* HAVE_LOCALE_T */
/*