foxygit / doom Log in
commit f594cdeee57e23a7b7b29b9b3c51920d32978c30
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: Sat Jun 18 14:38:12 2022 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: Sat Jun 18 14:38:12 2022 +0000

    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.
---
 src/i_video.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/i_video.c b/src/i_video.c
index 9d875461..2656a877 100644
--- 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"