* lib/c-strtod.c: Include <stdio.h>, since we call sprintf.
Problem found by Oracle Developer Studio 12.6 on Solaris 10.
---
 ChangeLog      | 6 ++++++
 lib/c-strtod.c | 1 +
 2 files changed, 7 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index f94a39a2bb..1c85c92f9f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-05-21  Paul Eggert  <egg...@cs.ucla.edu>
+
+       c-strtod: include <stdio.h>
+       * lib/c-strtod.c: Include <stdio.h>, since we call sprintf.
+       Problem found by Oracle Developer Studio 12.6 on Solaris 10.
+
 2024-05-21  Collin Funk  <collin.fu...@gmail.com>
 
        getusershell: Split file by lines instead of spaces.
diff --git a/lib/c-strtod.c b/lib/c-strtod.c
index 9551aebe37..4089ccd79b 100644
--- a/lib/c-strtod.c
+++ b/lib/c-strtod.c
@@ -23,6 +23,7 @@
 
 #include <errno.h>
 #include <locale.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 
-- 
2.45.1


Reply via email to