xf86drm: implement drmParseSubsystemType for DragonFly

Like on OpenBSD, the DragonFly BSD kernel only contains
pci drm drivers.

Signed-off-by: François Tigeot <ftigeot@wolfpond.org>
main
François Tigeot 2018-12-12 20:48:35 +01:00 committed by Ilia Mirkin
parent ba45adb2a1
commit 200e9e98a2
1 changed files with 1 additions and 1 deletions

View File

@ -3014,7 +3014,7 @@ static int drmParseSubsystemType(int maj, int min)
}
return -EINVAL;
#elif defined(__OpenBSD__)
#elif defined(__OpenBSD__) || defined(__DragonFly__)
return DRM_BUS_PCI;
#else
#warning "Missing implementation of drmParseSubsystemType"