From f1aa7a79d8c0bd3f95adb782cd67575e48dc73e5 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Fri, 10 Jul 2020 23:53:59 +0100 Subject: [PATCH] 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 --- jail/seccomp-oci.h | 4 +--- 1 file changed, 1 insertion(+), 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 -#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; } -- 2.30.2