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

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

diff --git a/src/i_input.c b/src/i_input.c
index e91564cf..aa9f6ff0 100644
--- 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"