shithub: choc

Download patch

ref: f594cdeee57e23a7b7b29b9b3c51920d32978c30
parent: b3ff96563940287e02997a60edfa7a89551a06d7
author: Alex Richardson <[email protected]>
date: Sat Jun 18 10:38:12 EDT 2022

i_video.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 'strcmp' with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-declaration]`
for me.

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -18,6 +18,7 @@
 
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "SDL.h"
 #include "SDL_opengl.h"