]> jfr.im git - irc/hexchat/hexchat.git/commitdiff
Fix compilation failure on non-linux, non-darwin, non-windows systems.
authorMattia Rizzolo <redacted>
Sun, 23 Sep 2018 11:17:56 +0000 (13:17 +0200)
committerPatrick Griffis <redacted>
Sat, 21 Dec 2019 06:26:15 +0000 (22:26 -0800)
'gnu' => Hurd
'gnu/' => all the gnu/* stuff like gnu/kfreebsd

Signed-off-by: Mattia Rizzolo <redacted>
plugins/sysinfo/meson.build

index aac52e89687ec6be3d3d49327349664817e4fbd5..8b67da2e29e82fda29fefeebdd8c45536f170613 100644 (file)
@@ -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