From d61f7225d128c08d938b45897cb7614ab8a36a8e 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. (cherry picked from commit a89fcd20d8d03fef795211939bc19b87cb59bb87) --- src/wl_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wl_init.c b/src/wl_init.c index 49e7cc52..3d48702b 100644 --- a/src/wl_init.c +++ b/src/wl_init.c @@ -26,6 +26,8 @@ // It is fine to use C99 in this file because it will not be built with VS //======================================================================== +#define _POSIX_C_SOURCE 200809L + #include "internal.h" #include