gbranden pushed a commit to branch master
in repository groff.
commit fa4612e5a7308b8f773200febc8e3220cfe60ee3
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Feb 22 03:49:47 2025 -0600
[libgroff]: Include <string.h>.
* src/libs/libgroff/font.cpp: Include "string.h" standard header file,
since we (now) use strerror(3).
---
ChangeLog | 5 +++++
src/libs/libgroff/font.cpp | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index c03dd90ce..758a72866 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-02-22 G. Branden Robinson <[email protected]>
+
+ * src/libs/libgroff/font.cpp: Include "string.h" standard header
+ file, since we (now) use strerror(3).
+
2025-02-21 G. Branden Robinson <[email protected]>
[troff]: Make it possible to retrieve information about a *roff
diff --git a/src/libs/libgroff/font.cpp b/src/libs/libgroff/font.cpp
index bd4fd1147..0e89ecfc8 100644
--- a/src/libs/libgroff/font.cpp
+++ b/src/libs/libgroff/font.cpp
@@ -23,9 +23,10 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>. */
#include <assert.h>
#include <ctype.h>
#include <errno.h>
-#include <limits.h> // INT_MAX, LONG_MAX
+#include <limits.h> // INT_MAX, INT_MIN, LONG_MAX
#include <math.h>
#include <stdlib.h>
+#include <string.h> // strerror()
#include <wchar.h>
#include "lib.h"
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit