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

[macOS] Use PAGE_SIZE macro instead of getpagesize() to build on macOS big sur. #1791

Closed
doneria-anjali opened this issue Jul 21, 2020 · 1 comment

Comments

@doneria-anjali
Copy link

During psutil library installation on mac OS 11.0 (aka Big Sur), during building, the setup fails with error:
psutil/_psutil_osx.c:516:20: error: implicit declaration of function 'getpagesize' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
int pagesize = getpagesize();

Enhancement is to support installation of psutil on macOS 11.0 using python-pip by using PAGE_SIZE instead of getpagesize(). PAGE_SIZE is a macro that gives you the vm_page_size global.

@doneria-anjali doneria-anjali changed the title [macOS 11.0] Use PAGE_SIZE macro instead of getpagesize() to build on macOS big sur. [macOS] Use PAGE_SIZE macro instead of getpagesize() to build on macOS big sur. Jul 21, 2020
@giampaolo
Copy link
Owner

Please make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants