From 5edfd6852d0711bf6ca98fcaf74d981397056b02 Mon Sep 17 00:00:00 2001 From: Mark Muth Date: Sat, 1 Jun 2024 22:46:43 +0200 Subject: [PATCH] Fix build with GCC 14.1 on Arch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compiling with `gcc (GCC) 14.1.1 20240507` raised the following warning: `error: implicit declaration of function ‘gettimeofday’ [-Wimplicit-function-declaration]` Adding `#include ` according to `man gettimeofday` fixes #509. --- src/ctl/ctl-cli.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ctl/ctl-cli.c b/src/ctl/ctl-cli.c index 9240ee4..17e2f12 100644 --- a/src/ctl/ctl-cli.c +++ b/src/ctl/ctl-cli.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include "ctl.h"