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

Fix compilation if sys/sysctl.h is not present #84

Open
wants to merge 1 commit into
base: ffmpeg_update
Choose a base branch
from

Conversation

jrsnen
Copy link

@jrsnen jrsnen commented Jun 15, 2023

Glibc 2.32 removes sys/sysctl.h. This commit fixes the compilation with newer versions of Glibc by checking for sys/sysctl.h with has_include.

Glibc 2.32 removes sys/sysctl.h as it is no longer needed. This commit uses
__has_include to check whether the header exists and only includes it if it
does.
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