mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 08:10:11 +01:00
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>
This commit is contained in:
parent
379113724f
commit
44bcf9c0ce
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue