summaryrefslogtreecommitdiff
path: root/xf86drm.c
diff options
context:
space:
mode:
authorFrançois Tigeot <ftigeot@wolfpond.org>2018-12-12 20:48:35 +0100
committerIlia Mirkin <imirkin@alum.mit.edu>2018-12-13 20:39:02 -0500
commit200e9e98a2fbd876ee5f0afd943731a63b7af3dc (patch)
tree60bda630f68d370e79481e1c746259f6ca62f2dc /xf86drm.c
parentba45adb2a121dae8fa408f921ef2caae86d2f78e (diff)
downloaddrm-200e9e98a2fbd876ee5f0afd943731a63b7af3dc.tar.gz
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>
Diffstat (limited to 'xf86drm.c')
-rw-r--r--xf86drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xf86drm.c b/xf86drm.c
index 71ad54ba..1016a2b5 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -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"