libdrm: Default to PCI for FreeBSD

FreeBSD have some support for DRM on !PCI device but no code is currently
upstream. Default to PCI for now.

Signed-off-by: Emmanuel Vadot <manu@FreeBSD.org>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
main
Emmanuel Vadot 2020-01-21 17:56:49 +01:00 committed by Emmanuel Vadot
parent 57c50cfc45
commit 41f3a7b3e5
1 changed files with 1 additions and 1 deletions

View File

@ -3109,7 +3109,7 @@ static int drmParseSubsystemType(int maj, int min)
subsystem_type = get_subsystem_type(path); subsystem_type = get_subsystem_type(path);
} }
return subsystem_type; return subsystem_type;
#elif defined(__OpenBSD__) || defined(__DragonFly__) #elif defined(__OpenBSD__) || defined(__DragonFly__) || defined(__FreeBSD__)
return DRM_BUS_PCI; return DRM_BUS_PCI;
#else #else
#warning "Missing implementation of drmParseSubsystemType" #warning "Missing implementation of drmParseSubsystemType"