From 7d0d2480143d46dc9ee8dfd17d4149b84d5eab2e Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sun, 23 Mar 2025 14:33:49 -0700 Subject: [PATCH] newlocale: Fix implicit function declarations. * lib/newlocale.c [HAVE_NEWLOCALE]: Include string.h for strlen and strcmp, stdio.h for sprintf, and stdlib.h for free. --- ChangeLog | 6 ++++++ lib/newlocale.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 12aa0404b6..10c428e81f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-03-23 Collin Funk + + newlocale: Fix implicit function declarations. + * lib/newlocale.c [HAVE_NEWLOCALE]: Include string.h for strlen and + strcmp, stdio.h for sprintf, and stdlib.h for free. + 2025-03-22 Bruno Haible getlocalename_l-unsafe: Add Android workaround, like on OpenBSD. diff --git a/lib/newlocale.c b/lib/newlocale.c index ccce715852..7635fb691f 100644 --- a/lib/newlocale.c +++ b/lib/newlocale.c @@ -28,6 +28,9 @@ # include # include +# include +# include +# include locale_t newlocale (int category_mask, const char *name, locale_t base) -- 2.39.5