diff --git a/src/detection/displayserver/linux/wayland/wayland.c b/src/detection/displayserver/linux/wayland/wayland.c index 4b6d908e2..ac262979e 100644 --- a/src/detection/displayserver/linux/wayland/wayland.c +++ b/src/detection/displayserver/linux/wayland/wayland.c @@ -17,7 +17,7 @@ #include "kde-output-order-v1-client-protocol.h" #include "xdg-output-unstable-v1-client-protocol.h" -#ifndef __FreeBSD__ +#ifdef __linux__ static bool waylandDetectWM(int fd, FFDisplayServerResult* result) { struct ucred ucred; @@ -34,7 +34,7 @@ static bool waylandDetectWM(int fd, FFDisplayServerResult* result) return true; } #else -static void waylandDetectWM(int fd, FFDisplayServerResult* result) +static bool waylandDetectWM(int fd, FFDisplayServerResult* result) { FF_UNUSED(fd, result); return false;