diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-10-17 02:46:03 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-10-17 02:46:03 +0200 |
commit | 0398213c561faf641f60a625a02d7df17f0d1e89 (patch) | |
tree | a18ed9bb695fa23990ddfd0658f8a048a0f91664 | |
parent | b4c2124ff1f8f4f1f7f50ad0af6945b0d7e945df (diff) | |
download | psutil-0398213c561faf641f60a625a02d7df17f0d1e89.tar.gz |
macOS: include unistd.h needed by getpagesize(); fixes #1791
-rw-r--r-- | HISTORY.rst | 1 | ||||
-rw-r--r-- | psutil/_psutil_osx.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/HISTORY.rst b/HISTORY.rst index 8c1c8a49..af5dab68 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -15,6 +15,7 @@ XXXX-XX-XX **Bug fixes** +- 1791_: [macOS] fix missing include for getpagesize(). - 1823_: [Windows] Process.open_files() may cause a segfault due to a NULL pointer. - 1838_: [Linux] sensors_battery(): if `percent` can be determined but not diff --git a/psutil/_psutil_osx.c b/psutil/_psutil_osx.c index c51c1c78..fdf34d97 100644 --- a/psutil/_psutil_osx.c +++ b/psutil/_psutil_osx.c @@ -21,6 +21,7 @@ #include <arpa/inet.h> #include <net/if_dl.h> #include <pwd.h> +#include <unistd.h> #include <mach/mach.h> #include <mach/task.h> |