From 1ab6b693b16e1d9734496fe60c8a6ed277e4dec3 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 5 Feb 2025 22:41:33 +0200 Subject: [PATCH] Forward declarate timespec struct The `timespec` struct is defined in `time.h` header but only if `_POSIX_C_SOURCE` is set or when using the C11 standard. Signed-off-by: Vlad Zahorodnii --- src/wayland-client-core.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wayland-client-core.h b/src/wayland-client-core.h index 157da431..a70d4f09 100644 --- a/src/wayland-client-core.h +++ b/src/wayland-client-core.h @@ -27,7 +27,6 @@ #define WAYLAND_CLIENT_CORE_H #include -#include #include "wayland-util.h" #include "wayland-version.h" @@ -35,6 +34,8 @@ extern "C" { #endif +struct timespec; + /** \class wl_proxy * * \brief Represents a protocol object on the client side.