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

Implicitly include <sys/param.h> so that __FreeBSD_version checks wor… #2114

Merged
merged 2 commits into from
Jun 24, 2022

Conversation

Torsten-B
Copy link
Contributor

@Torsten-B Torsten-B commented Jun 23, 2022

Implicitly include <sys/param.h> so that __FreeBSD_version checks work properly

Summary

  • OS: FreeBSD
  • Bug fix: yes
  • Type: core
  • Fixes: 2113

Description

Implicitly include <sys/param.h> on all code files in psutil/arc/freebsd that make use of __FreeBSD_version.
While some code already includes it directly and others pull it in indirectly via other includes, mem.c was not and made __FreeBSD_version checks silently fail on some common FreeBSD installations, including default setups with FreeBSD on arm platforms.

@giampaolo
Copy link
Owner

Looks good. Could you please also update HISTORY and CREDITS files?

@Torsten-B
Copy link
Contributor Author

Looks good. Could you please also update HISTORY and CREDITS files?

Done & updated PR 2114

@giampaolo giampaolo merged commit 3752147 into giampaolo:master Jun 24, 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.

2 participants