shithub: choc

Download patch

ref: b3ff96563940287e02997a60edfa7a89551a06d7
parent: b8dbc8c19108334e8d940c2d94dcedbc4cf5f464
author: Alex Richardson <[email protected]>
date: Sat Jun 18 10:37:20 EDT 2022

i_input.c: add missing string.h include

On FreeBSD this include is not pulled in implicitly so the build fails with
`error: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-declaration]`
for me.

--- a/src/i_input.c
+++ b/src/i_input.c
@@ -16,6 +16,7 @@
 //     SDL implementation of system-specific input interface.
 //
 
+#include <string.h>
 
 #include "SDL.h"
 #include "SDL_keycode.h"