summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2020-04-20 22:44:02 +0200
committerEmmanuel Vadot <manu@FreeBSD.org>2020-04-21 19:26:54 +0200
commit44bcf9c0ceb712b882e5053cc8dda7ca95d78e63 (patch)
treed18256f71f2cc6c876f6586aeab19b2acf8b0263
parent379113724f9860aea174674865d1d188b5c10f4c (diff)
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>
-rw-r--r--xf86drm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xf86drm.c b/xf86drm.c
index 9cb19139..53eb832d 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -3120,6 +3120,7 @@ static int drmParseSubsystemType(int maj, int min)
#endif
}
+#ifdef __linux__
static void
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)
*term = 0;
}
+#endif
#ifdef __FreeBSD__
static int get_sysctl_pci_bus_info(int maj, int min, drmPciBusInfoPtr info)