shithub: choc

Download patch

ref: 6a03c4ffad03c83f8d84e3b744a95a5244172d7e
parent: 6e2d5f924cb23eb3ad2984ce85bdbae702117d0d
author: Alex Richardson <[email protected]>
date: Sat Jun 18 10:33:20 EDT 2022

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.

--- 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>