Skip to content

Commit 69f180b

Browse files
committed
Display (FreeBSD): don't try to use /sys on FreeBSD
1 parent 0e9cdf7 commit 69f180b

File tree

1 file changed

+3
-1
lines changed
  • src/detection/displayserver/linux/wayland

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static void waylandGlobalAddListener(void* data, struct wl_registry* registry, u
102102
}
103103
}
104104

105-
static bool matchDrmConnector(const char* connName, WaylandDisplay* wldata)
105+
static FF_MAYBE_UNUSED bool matchDrmConnector(const char* connName, WaylandDisplay* wldata)
106106
{
107107
// https://wayland.freedesktop.org/docs/html/apa.html#protocol-spec-wl_output-event-name
108108
// The doc says that "do not assume that the name is a reflection of an underlying DRM connector, X11 connection, etc."
@@ -148,8 +148,10 @@ void ffWaylandOutputNameListener(void* data, FF_MAYBE_UNUSED void* output, const
148148
if (display->id) return;
149149

150150
display->type = ffdsGetDisplayType(name);
151+
#if __linux__
151152
if (!display->edidName.length)
152153
matchDrmConnector(name, display);
154+
#endif
153155
display->id = ffWaylandGenerateIdFromName(name);
154156
ffStrbufAppendS(&display->name, name);
155157
}

0 commit comments

Comments
 (0)