summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2020-07-10 22:53:59 +0000
committerDaniel Golle2020-07-10 22:53:59 +0000
commitf1aa7a79d8c0bd3f95adb782cd67575e48dc73e5 (patch)
tree45c5917e69afbe7689005079ef43ea6bf9e074a6
parentbb4a4467b1d5ccbc84d89822235a38b63134e5a4 (diff)
downloadprocd-f1aa7a79d8c0bd3f95adb782cd67575e48dc73e5.tar.gz
jail: fix build on platforms without seccomp support
buildbots started failing due to -Werror=missing-declarations for 'parseOCIlinuxseccomp' and 'applyOCIlinuxseccomp'. Make sure functions were declared before defining comptibility stubs for non-seccomp platforms. Fixes: ea7a790 ("jail: add support for running OCI bundle") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r--jail/seccomp-oci.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/jail/seccomp-oci.h b/jail/seccomp-oci.h
index f8e0b6a..8cc8ae2 100644
--- a/jail/seccomp-oci.h
+++ b/jail/seccomp-oci.h
@@ -15,12 +15,10 @@
#include <linux/filter.h>
-#ifdef SECCOMP_SUPPORT
struct sock_fprog *parseOCIlinuxseccomp(struct blob_attr *msg);
int applyOCIlinuxseccomp(struct sock_fprog *prog);
-#else
-
+#ifndef SECCOMP_SUPPORT
struct sock_fprog *parseOCIlinuxseccomp(struct blob_attr *msg) {
return NULL;
}