]> git.ipfire.org Git - thirdparty/systemd.git/commit
build: fix build without seccomp
authorDominique Martinet <asmadeus@codewreck.org>
Wed, 24 Nov 2021 14:04:30 +0000 (23:04 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 25 Nov 2021 04:22:32 +0000 (13:22 +0900)
commit7a8288f6ed185f8033b59a007ace956df7fc8ff5
treee8f5bff1c68222860ae9cfe0e25cc3dd83629395
parent68181cf8a783cb78f4d50384d133bc5f411c79c7
build: fix build without seccomp

- execute.c: bpf functions were in the middle of an #if HAVE_SECCOMP
  block for no reason
- test-fd-util.c: make seccomp-util.h includable without depending on
  <seccomp.h>, and make is_seccomp_available() hardcoded to returning
  false in this case.
  Also fix a stray DEFINED() -- HAVE_SECCOMP is defined as 0, so normal
  #if should be used like everywhere else.
src/core/execute.c
src/shared/seccomp-util.h
src/test/test-fd-util.c