Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pidfd: add missing include #2528

Open
wants to merge 1 commit into
base: criu-dev
Choose a base branch
from

Commits on Nov 23, 2024

  1. 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 <[email protected]>
    rst0git committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    5512c70 View commit details
    Browse the repository at this point in the history