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;