]> Savannah Git Hosting - gnulib.git/commitdiff
newlocale: Fix implicit function declarations.
authorCollin Funk <collin.funk1@gmail.com>
Sun, 23 Mar 2025 21:33:49 +0000 (14:33 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sun, 23 Mar 2025 21:33:49 +0000 (14:33 -0700)
* lib/newlocale.c [HAVE_NEWLOCALE]: Include string.h for strlen and
strcmp, stdio.h for sprintf, and stdlib.h for free.

ChangeLog
lib/newlocale.c

index 12aa0404b6e415b9d257208d8346c00d0168db1b..10c428e81f07d1e965dea829be858a205a4e5c55 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-03-23  Collin Funk  <collin.funk1@gmail.com>
+
+       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  <bruno@clisp.org>
 
        getlocalename_l-unsafe: Add Android workaround, like on OpenBSD.
index ccce71585257ba9e3a947be53ff385f54eec3731..7635fb691f1c8e16b35696fb3443eb064cf79aa5 100644 (file)
@@ -28,6 +28,9 @@
 
 # include <sys/types.h>
 # include <sys/stat.h>
+# include <stdlib.h>
+# include <stdio.h>
+# include <string.h>
 
 locale_t
 newlocale (int category_mask, const char *name, locale_t base)