From: Collin Funk Date: Sun, 23 Mar 2025 21:33:49 +0000 (-0700) Subject: newlocale: Fix implicit function declarations. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=7d0d2480143d46dc9ee8dfd17d4149b84d5eab2e;p=gnulib.git 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. --- 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)