mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
pidfd: add missing include
Fix for the following error when building CRIU on Rocky Linux 8
criu/pidfd.c: In function ‘pidfd_open’:
criu/pidfd.c:119:17: error: ‘__NR_pidfd_open’ undeclared (first use in this function); did you mean ‘pidfd_open’?
return syscall(__NR_pidfd_open, pid, flags);
^~~~~~~~~~~~~~~
pidfd_open
criu/pidfd.c:119:17: note: each undeclared identifier is reported only once for each function it appears in
criu/pidfd.c:120:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
criu/pidfd.c: At top level:
cc1: error: unrecognized command line option ‘-Wno-unknown-warning-option’ [-Werror]
cc1: error: unrecognized command line option ‘-Wno-dangling-pointer’ [-Werror]
cc1: all warnings being treated as errors
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
40b7f04b7c
commit
ed560a3491
1 changed files with 2 additions and 0 deletions
|
|
@ -11,6 +11,8 @@
|
|||
#include "common/bug.h"
|
||||
#include "rst-malloc.h"
|
||||
|
||||
#include "compel/plugins/std/syscall-codes.h"
|
||||
|
||||
#undef LOG_PREFIX
|
||||
#define LOG_PREFIX "pidfd: "
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue