diff options
Diffstat (limited to 'plugins/sysinfo')
-rw-r--r-- | plugins/sysinfo/meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sysinfo/meson.build b/plugins/sysinfo/meson.build index 7b4c9425..3781bd52 100644 --- a/plugins/sysinfo/meson.build +++ b/plugins/sysinfo/meson.build @@ -19,8 +19,8 @@ if system == 'linux' or system == 'darwin' ] if system == 'linux' - libpci = dependency('libpci', required: false) - if libpci.found() and cc.has_header('pci/pci.h') + libpci = dependency('libpci', required: false, method: 'pkg-config') + if libpci.found() sysinfo_deps += libpci sysinfo_cargs += '-DHAVE_LIBPCI' sysinfo_sources += 'unix/pci.c' |