libdrm: get_pci_path is Linux only so add an ifdef
Signed-off-by: Emmanuel Vadot <manu@FreeBSD.org> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>main
parent
379113724f
commit
44bcf9c0ce
|
@ -3120,6 +3120,7 @@ static int drmParseSubsystemType(int maj, int min)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
static void
|
static void
|
||||||
get_pci_path(int maj, int min, char *pci_path)
|
get_pci_path(int maj, int min, char *pci_path)
|
||||||
{
|
{
|
||||||
|
@ -3135,6 +3136,7 @@ get_pci_path(int maj, int min, char *pci_path)
|
||||||
if (term && strncmp(term, "/virtio", 7) == 0)
|
if (term && strncmp(term, "/virtio", 7) == 0)
|
||||||
*term = 0;
|
*term = 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
static int get_sysctl_pci_bus_info(int maj, int min, drmPciBusInfoPtr info)
|
static int get_sysctl_pci_bus_info(int maj, int min, drmPciBusInfoPtr info)
|
||||||
|
|
Loading…
Reference in New Issue