diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2018-09-23 13:17:56 +0200 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2018-09-26 13:18:54 -0400 |
commit | 643269445530edd0ee6a308f771767ec3f9a1919 (patch) | |
tree | 6499de130d1499b1ee45b2587eaf96cb11530af4 | |
parent | cf140f3ab0cc7ccc96f25fbc3c06cdefbb2e8d67 (diff) |
Fix compilation failure on non-linux, non-darwin, non-windows systems.
'gnu' => Hurd 'gnu/' => all the gnu/* stuff like gnu/kfreebsd Signed-off-by: Mattia Rizzolo <mattia@mapreri.org>
-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 aac52e89..8b67da2e 100644 --- a/plugins/sysinfo/meson.build +++ b/plugins/sysinfo/meson.build @@ -13,13 +13,13 @@ sysinfo_includes = [] sysinfo_cargs = [] system = host_machine.system() -if system == 'linux' or system == 'darwin' +if system == 'linux' or system == 'gnu' or system.startswith('gnu/') or system == 'darwin' sysinfo_includes += 'shared' sysinfo_sources += [ 'shared/df.c' ] - if system == 'linux' + if system == 'linux' or system == 'gnu' or system.startswith('gnu/') libpci = dependency('libpci', required: false, method: 'pkg-config') if libpci.found() sysinfo_deps += libpci |