From fa872d7c9b9c4e07866c9c8c4ac45e05b93fc82f Mon Sep 17 00:00:00 2001 From: Carter Li Date: Mon, 8 Jul 2024 15:32:09 +0800 Subject: [PATCH] Display: fix build on FreeBSD --- src/detection/displayserver/linux/wayland/wayland.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;