projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3791137
)
libdrm: get_pci_path is Linux only so add an ifdef
author
Emmanuel Vadot
<manu@FreeBSD.org>
Mon, 20 Apr 2020 20:44:02 +0000
(22:44 +0200)
committer
Emmanuel Vadot
<manu@FreeBSD.org>
Tue, 21 Apr 2020 17:26:54 +0000
(19:26 +0200)
Signed-off-by: Emmanuel Vadot <manu@FreeBSD.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
xf86drm.c
patch
|
blob
|
history
diff --git
a/xf86drm.c
b/xf86drm.c
index
9cb1913
..
53eb832
100644
(file)
--- 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)