diff options
author | Emmanuel Vadot <manu@FreeBSD.org> | 2020-04-20 22:44:02 +0200 |
---|---|---|
committer | Emmanuel Vadot <manu@FreeBSD.org> | 2020-04-21 19:26:54 +0200 |
commit | 44bcf9c0ceb712b882e5053cc8dda7ca95d78e63 (patch) | |
tree | d18256f71f2cc6c876f6586aeab19b2acf8b0263 | |
parent | 379113724f9860aea174674865d1d188b5c10f4c (diff) | |
download | libdrm-44bcf9c0ceb712b882e5053cc8dda7ca95d78e63.tar.gz libdrm-44bcf9c0ceb712b882e5053cc8dda7ca95d78e63.tar.bz2 libdrm-44bcf9c0ceb712b882e5053cc8dda7ca95d78e63.zip |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |