Skip to content

Conversation

@benjamb
Copy link

@benjamb benjamb commented Aug 11, 2022

glibc 2.36 has added the pidfd_open function, if sys/pidfd.h exists then
we should include it.

Fixes the following error:

../common/common-pidfds.c: In function ‘open_pidfds’:
../common/common-pidfds.c:70:26: error: implicit declaration of function ‘pidfd_open’; did you mean ‘fdopen’? [-Werror=implicit-function-declaration]
   70 |                 int fd = pidfd_open(pid, 0);
      |                          ^~~~~~~~~~
      |                          fdopen

glibc 2.36 has added the pidfd_open function, if sys/pidfd.h exists then
we should include it.

Fixes the following error:

    ../common/common-pidfds.c: In function ‘open_pidfds’:
    ../common/common-pidfds.c:70:26: error: implicit declaration of function ‘pidfd_open’; did you mean ‘fdopen’? [-Werror=implicit-function-declaration]
       70 |                 int fd = pidfd_open(pid, 0);
          |                          ^~~~~~~~~~
          |                          fdopen
@benjamb
Copy link
Author

benjamb commented Aug 11, 2022

Oops, looks like I missed #379.

@benjamb benjamb closed this Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant