From a89fcd20d8d03fef795211939bc19b87cb59bb87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Tue, 22 Jun 2021 00:25:42 +0200 Subject: [PATCH] Wayland: Fix missing constant on FreeBSD On FreeBSD O_CLOEXEC is only available when _POSIX_C_SOURCE >= 200809. O_CLOEXEC is in turn required by the epollshim header. Issue reported on IRC. --- src/wl_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wl_init.c b/src/wl_init.c index 21a808aa..1ba497b7 100644 --- a/src/wl_init.c +++ b/src/wl_init.c @@ -26,7 +26,7 @@ // It is fine to use C99 in this file because it will not be built with VS //======================================================================== -#define _POSIX_C_SOURCE 199309L +#define _POSIX_C_SOURCE 200809L #include "internal.h"