gbranden pushed a commit to branch master
in repository groff.
commit f17e285f6b62f4c07b2b89527cafc112c29b00f6
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Dec 1 07:12:37 2024 -0600
src/preproc/grn/hdb.cpp: Include <stdlib.h>.
* src/preproc/grn/hdb.cpp: Include "<stdlib.h>" header file to ensure
visibility of `atoi()` declaration. Problem detected on Solaris 10.
---
ChangeLog | 6 ++++++
src/preproc/grn/hdb.cpp | 1 +
2 files changed, 7 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 7ac4c9d33..5e6312005 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-12-01 G. Branden Robinson <[email protected]>
+
+ * src/preproc/grn/hdb.cpp: Include "<stdlib.h>" header file to
+ ensure visibility of `atoi()` declaration. Problem detected on
+ Solaris 10.
+
2024-11-30 G. Branden Robinson <[email protected]>
Reduce header file inclusion spam.
diff --git a/src/preproc/grn/hdb.cpp b/src/preproc/grn/hdb.cpp
index 4d292865b..708389de4 100644
--- a/src/preproc/grn/hdb.cpp
+++ b/src/preproc/grn/hdb.cpp
@@ -16,6 +16,7 @@
#include <ctype.h> // isdigit()
#include <stdio.h> // FILE, feof(), fgets(), getc()
+#include <stdlib.h> // atoi()
#include <string.h> // strcmp()
#include "errarg.h"
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit