From 82c92185eabae2d1e8fc8ed1f4f1d42aa12cc427 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Thu, 30 Sep 2021 17:26:56 +0200 Subject: [PATCH] memfd: linux/memfd does not exist on FreeBSD memfd_create is defined in sys/mman.h on FreeBSD --- bar/wayland.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bar/wayland.c b/bar/wayland.c index 270b4ff..16af9fe 100644 --- a/bar/wayland.c +++ b/bar/wayland.c @@ -9,7 +9,9 @@ #include #include +#ifdef __linux__ #include +#endif #include #include