gbranden pushed a commit to branch master
in repository groff.

commit 3344633c05bf56d5c3dd2261191569ba2f80de98
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat May 16 13:34:01 2026 -0500

    [grotty]: Refine preprocessor inclusions.
    
    * src/devices/grotty/tty.cpp: Preprocessor-include "<string.h>" header
      file, since strcmp(3) and strncmp(3) are used (the former only in `#if
      0`-ed code).
---
 ChangeLog                  | 6 ++++++
 src/devices/grotty/tty.cpp | 1 +
 2 files changed, 7 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 0dc86f41d..22336046c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-05-16  G. Branden Robinson <[email protected]>
+
+       * src/devices/grotty/tty.cpp: Preprocessor-include
+       "<string.h>" header file, since strcmp(3) and strncmp(3) are
+       used (the former only in `#if 0`-ed code).
+
 2026-05-16  G. Branden Robinson <[email protected]>
 
        * src/devices/grohtml/html-text.cpp: Preprocessor-include
diff --git a/src/devices/grotty/tty.cpp b/src/devices/grotty/tty.cpp
index 041bc1c55..1ef9a369f 100644
--- a/src/devices/grotty/tty.cpp
+++ b/src/devices/grotty/tty.cpp
@@ -28,6 +28,7 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
 #include <stdio.h> // EOF, FILE, fprintf(), fputs(), printf(),
                   // putchar(), setbuf(), stderr, stdout
 #include <stdlib.h> // exit(), EXIT_SUCCESS, getenv(), strtol()
+#include <string.h> // strcmp(), strncmp()
 
 // GNU extensions to C standard library
 #include <getopt.h> // getopt_long()

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to