From d05b9f2dde17e60996437332219b4b568f7edefa Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 1 Dec 2016 15:18:40 +1100 Subject: xf86drm: implement drmParseSubsystemType for OpenBSD Implement drmParseSubsystemType for OpenBSD by always returning DRM_BUS_PCI. No non-pci drm drivers are in the kernel and this is unlikely to change anytime soon as the existing ones aren't permissively licensed. Signed-off-by: Jonathan Gray Reviewed-by: Emil Velikov --- xf86drm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xf86drm.c') diff --git a/xf86drm.c b/xf86drm.c index 65764de4..a889d48d 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -2887,6 +2887,8 @@ static int drmParseSubsystemType(int maj, int min) return DRM_BUS_PCI; return -EINVAL; +#elif defined(__OpenBSD__) + return DRM_BUS_PCI; #else #warning "Missing implementation of drmParseSubsystemType" return -EINVAL; -- cgit v1.2.3-54-g00ecf