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>
This commit is contained in:
parent
cf140f3ab0
commit
6432694455
@ -13,13 +13,13 @@ sysinfo_includes = []
|
|||||||
sysinfo_cargs = []
|
sysinfo_cargs = []
|
||||||
|
|
||||||
system = host_machine.system()
|
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_includes += 'shared'
|
||||||
sysinfo_sources += [
|
sysinfo_sources += [
|
||||||
'shared/df.c'
|
'shared/df.c'
|
||||||
]
|
]
|
||||||
|
|
||||||
if system == 'linux'
|
if system == 'linux' or system == 'gnu' or system.startswith('gnu/')
|
||||||
libpci = dependency('libpci', required: false, method: 'pkg-config')
|
libpci = dependency('libpci', required: false, method: 'pkg-config')
|
||||||
if libpci.found()
|
if libpci.found()
|
||||||
sysinfo_deps += libpci
|
sysinfo_deps += libpci
|
||||||
|
Loading…
Reference in New Issue
Block a user