summary refs log tree commit diff stats
path: root/plugins/sysinfo/meson.build
diff options
context:
space:
mode:
authorpkubaj <pkubaj@users.noreply.github.com>2019-12-22 13:50:57 +0000
committerPatrick <tingping@tingping.se>2019-12-22 20:45:16 -0800
commitc522ccce7fd10ccb22ee9dc314256c90232f8601 (patch)
tree99e458ad493177316eeef35defdbbcaf7b61e5f6 /plugins/sysinfo/meson.build
parent58cdff728de80b08eec18468be1a8879baca5f50 (diff)
Fix build on FreeBSD
Diffstat (limited to 'plugins/sysinfo/meson.build')
-rw-r--r--plugins/sysinfo/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sysinfo/meson.build b/plugins/sysinfo/meson.build
index 8b67da2e..7e2cdb6c 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 == 'gnu' or system.startswith('gnu/') or system == 'darwin'
+if system == 'linux' or system == 'gnu' or system.startswith('gnu/') or system == 'darwin' or system == 'freebsd'
   sysinfo_includes += 'shared'
   sysinfo_sources += [
     'shared/df.c'
   ]
 
-  if system == 'linux' or system == 'gnu' or system.startswith('gnu/')
+  if system == 'linux' or system == 'gnu' or system.startswith('gnu/') or system == 'freebsd'
     libpci = dependency('libpci', required: false, method: 'pkg-config')
     if libpci.found()
       sysinfo_deps += libpci