Skip to content

Commit 29bcf7c

Browse files
metuxjosephcrowell
authored andcommitted
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>
1 parent 54e52ec commit 29bcf7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/drmmode_display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3646,6 +3646,7 @@ drmmode_find_output(ScrnInfoPtr scrn, int output_id, int *num_dvi,
36463646
return FALSE;
36473647
}
36483648

3649+
#ifdef HAVE_LIBUDEV
36493650
static void
36503651
amdgpu_mode_hotplug(ScrnInfoPtr scrn, drmmode_ptr drmmode)
36513652
{
@@ -3761,7 +3762,6 @@ amdgpu_mode_hotplug(ScrnInfoPtr scrn, drmmode_ptr drmmode)
37613762
RRGetInfo(xf86ScrnToScreen(scrn), TRUE);
37623763
}
37633764

3764-
#ifdef HAVE_LIBUDEV
37653765
static void drmmode_handle_uevents(int fd, void *closure)
37663766
{
37673767
drmmode_ptr drmmode = closure;

0 commit comments

Comments
 (0)