Skip to content

Commit fa872d7

Browse files
committed
Display: fix build on FreeBSD
1 parent 545267b commit fa872d7

File tree

1 file changed

+2
-2
lines changed
  • src/detection/displayserver/linux/wayland

1 file changed

+2
-2
lines changed

src/detection/displayserver/linux/wayland/wayland.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "kde-output-order-v1-client-protocol.h"
1818
#include "xdg-output-unstable-v1-client-protocol.h"
1919

20-
#ifndef __FreeBSD__
20+
#ifdef __linux__
2121
static bool waylandDetectWM(int fd, FFDisplayServerResult* result)
2222
{
2323
struct ucred ucred;
@@ -34,7 +34,7 @@ static bool waylandDetectWM(int fd, FFDisplayServerResult* result)
3434
return true;
3535
}
3636
#else
37-
static void waylandDetectWM(int fd, FFDisplayServerResult* result)
37+
static bool waylandDetectWM(int fd, FFDisplayServerResult* result)
3838
{
3939
FF_UNUSED(fd, result);
4040
return false;

0 commit comments

Comments
 (0)