8000 Fix build with glibc 2.36 by benjamb · Pull Request #380 · FeralInteractive/gamemode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix build with glibc 2.36 #380

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

Closed
wants to merge 1 commit into from
Closed

Fix build with glibc 2.36 #380

wants to merge 1 commit into from

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
0