From 4747ce65c680d30c9f5f3b34977821900a544ed9 Mon Sep 17 00:00:00 2001 From: Michal Ambroz <723625+xambroz@users.noreply.github.com> Date: Sat, 4 Nov 2023 15:59:38 +0100 Subject: [PATCH] move the include of time.h The definition of the newly used _POSIX_SOURCE affects preprocessing of the time.h. As result on RHEL7 (possibly 6 as well) the timespec structure is not defined. --- src/gui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui.c b/src/gui.c index 26752524..7ce9ea82 100644 --- a/src/gui.c +++ b/src/gui.c @@ -33,6 +33,8 @@ #define _DEFAULT_SOURCE #endif +#include + #ifndef _POSIX_SOURCE #define _POSIX_SOURCE #endif @@ -42,7 +44,6 @@ #include #include #include -#include #include #include #include