From 935818346d10f47fcea276b1243a6515257ef513 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 15 Dec 2019 21:37:40 +0100 Subject: [PATCH] seccomp: work around API breakage in libseccomp 2.4.2 Signed-off-by: Nikos Mavrogiannopoulos --- src/worker-privs.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/worker-privs.c b/src/worker-privs.c index f7a70253..99833e03 100644 --- a/src/worker-privs.c +++ b/src/worker-privs.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013 Nikos Mavrogiannopoulos + * Copyright (C) 2013-2019 Nikos Mavrogiannopoulos * * This file is part of ocserv. * @@ -31,6 +31,15 @@ #include #include +/* libseccomp 2.4.2 broke accidentally the API. Work around it. */ +#ifndef __SNR_ppoll +# ifdef __NR_ppoll +# define __SNR_ppoll __NR_ppoll +# else +# define __SNR_ppoll __PNR_ppoll +# endif +#endif + int disable_system_calls(struct worker_st *ws) { int ret;