Skip to content

Commit

Permalink
Clean up libseccomp_dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Nov 4, 2019
1 parent cd2e1d1 commit b380f75
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -520,15 +520,16 @@ endif
# OS Specific checks
#============================================================================
# Look for libsecppomp, required for Linux sandboxing.
libseccomp_dep = ''
if sys_name.contains('linux')
libseccomp_dep = dependency('libseccomp', version : '>= 2.3.1', required: false)
if not (libseccomp_dep.found())
error('Nix requires libseccomp on a linux host system')
endif
libseccomp_dep = dependency(
'libseccomp',
version : '>= 2.3.1',
not_found_message : 'Nix requires libseccomp on a linux host system')
config_h.set(
'HAVE_SECCOMP', 1,
description : 'Whether seccomp is available and should be used for sandboxing.')
description : 'Whether seccomp is available and should be used for sandboxing.')
else
libseccomp_dep = dependency('', required: false)
endif

if (sys_name.contains('freebsd'))
Expand Down

0 comments on commit b380f75

Please sign in to comment.