From 29bcf7ceadb37c7f12062a4d857e1948ebf7cb17 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 4 Aug 2025 14:18:41 +0200 Subject: [PATCH] xfree86: amdgpu: fix amdgpu_mode_hotplug() conditional build If HAVE_LIBUDEV isn't set, this function isn't needed, so also should be ifdef'ed out. Signed-off-by: Enrico Weigelt, metux IT consult --- src/drmmode_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drmmode_display.c b/src/drmmode_display.c index b969483..780f23c 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -3646,6 +3646,7 @@ drmmode_find_output(ScrnInfoPtr scrn, int output_id, int *num_dvi, return FALSE; } +#ifdef HAVE_LIBUDEV static void amdgpu_mode_hotplug(ScrnInfoPtr scrn, drmmode_ptr drmmode) { @@ -3761,7 +3762,6 @@ out: RRGetInfo(xf86ScrnToScreen(scrn), TRUE); } -#ifdef HAVE_LIBUDEV static void drmmode_handle_uevents(int fd, void *closure) { drmmode_ptr drmmode = closure;