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

take into account sysctl deprecation in modern linux kernels #122

Open
wants to merge 8 commits into
base: devel
Choose a base branch
from

Conversation

kostrzewa
Copy link
Contributor

As described in https://www.phoronix.com/news/Linux-5.5-Kills-SYSCTL-SYSCALL, sys/sysctl.h has been deprecated for a while, as a result of which QPhiX and/or applications using it fail to build on some systems (such as on github's CI runners).

This seems to fix the issue in the sense that it requires sysconf to be available if sysctl is not. I'm not actually sure that either sys/types.h or sys/sysctl.h are required for using __rdtsc but I don't know so I wanted to make a minimal change which preserves the status quo of sys/sysctl.h is available.

Note that for testing reasons I had to include #121 in here as well.

@kostrzewa kostrzewa requested a review from eromero-vlc February 4, 2023 10:23
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.

3 participants