shithub: choc

Download patch

ref: b8dbc8c19108334e8d940c2d94dcedbc4cf5f464
parent: 6a03c4ffad03c83f8d84e3b744a95a5244172d7e
author: Alex Richardson <arichardson@FreeBSD.org>
date: Sat Jun 18 10:35:35 EDT 2022

setup/sound.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 'strstr' with type 'char *(const char *, const char *)' [-Werror,-Wimplicit-function-declaration]`
for me.

--- a/src/setup/sound.c
+++ b/src/setup/sound.c
@@ -15,6 +15,7 @@
 // Sound control menu
 
 #include <stdlib.h>
+#include <string.h>
 
 #include "SDL_mixer.h"