mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
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 <info@metux.net>
This commit is contained in:
committed by
Joseph Crowell
parent
54e52ecf82
commit
29bcf7cead
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user