foxygit / doom Log in
commit 6a03c4ffad03c83f8d84e3b744a95a5244172d7e
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: Sat Jun 18 14:33:20 2022 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: Sat Jun 18 14:33:20 2022 +0000

    txt_fileselect.c: add missing ctype.h include

    On FreeBSD this include is not pulled in implicitly so the build fails with
    `error: implicitly declaring library function 'isalpha' with type 'int (int)' [-Werror,-Wimplicit-function-declaration]`
    for me.
---
 textscreen/txt_fileselect.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/textscreen/txt_fileselect.c b/textscreen/txt_fileselect.c
index 922791dc..08c0c8f7 100644
--- a/textscreen/txt_fileselect.c
+++ b/textscreen/txt_fileselect.c
@@ -15,6 +15,7 @@
 // Routines for selecting files.
 //

+#include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>