Skip to content

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

Open
jrsnen wants to merge 1 commit intoOpenHEVC:ffmpeg_updatefrom
jrsnen:missing_sysctl
Open

Fix compilation if sys/sysctl.h is not present#84
jrsnen wants to merge 1 commit intoOpenHEVC:ffmpeg_updatefrom
jrsnen:missing_sysctl

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