groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 07/24: src/preproc/grn/hdb.cpp: Include <stdlib.h>.


From: G. Branden Robinson
Subject: [groff] 07/24: src/preproc/grn/hdb.cpp: Include <stdlib.h>.
Date: Mon, 2 Dec 2024 22:52:27 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit f17e285f6b62f4c07b2b89527cafc112c29b00f6
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
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 <g.branden.robinson@gmail.com>
+
+       * 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 <g.branden.robinson@gmail.com>
 
        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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]