From 44bcf9c0ceb712b882e5053cc8dda7ca95d78e63 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Mon, 20 Apr 2020 22:44:02 +0200 Subject: [PATCH] libdrm: get_pci_path is Linux only so add an ifdef Signed-off-by: Emmanuel Vadot Reviewed-by: Emil Velikov --- xf86drm.c | 2 ++ 1 file changed, 2 insertions(+) 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)