1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-12 13:31:54 +00:00

Fix build with GCC 14.1 on Arch

Compiling with `gcc (GCC) 14.1.1 20240507` raised the following warning:

`error: implicit declaration of function ‘gettimeofday’ [-Wimplicit-function-declaration]`

Adding `#include <sys/time.h>` according to `man gettimeofday` fixes #509.
This commit is contained in:
Mark Muth 2024-06-01 22:46:43 +02:00 committed by Alberto Fanjul
parent af6ab257ea
commit c83802fd06

View file

@ -27,6 +27,7 @@
#include <string.h>
#include <strings.h>
#include <sys/signalfd.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <systemd/sd-bus.h>
#include "ctl.h"
@ -34,7 +35,6 @@
#include "shl_util.h"
#include "shl_log.h"
#include <math.h>
#include <time.h>
/*