diff options
author | Brian Smith <brian@dbsoft.org> | 2022-04-26 13:26:41 -0500 |
---|---|---|
committer | Brian Smith <brian@dbsoft.org> | 2022-04-26 13:26:41 -0500 |
commit | 0102047d683b832c3b2952af3843e810432a234b (patch) | |
tree | 8e075ffcbe68c560c98f6db168ca4f3c44d46c51 | |
parent | b07c898b06a63298dfcbeae1a332a2674916e003 (diff) | |
download | uxp-0102047d683b832c3b2952af3843e810432a234b.tar.gz |
Issue #1829 - Fix psutil python extension on MacOS and potentially FreeBSD
Compilation failed due to missing sys/ioctl.h header on MacOS and FreeBSD. Call to function ioctl() with no prototype. This was non-fatal due to the psutil component being optional.
-rw-r--r-- | python/psutil/psutil/_psutil_posix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python/psutil/psutil/_psutil_posix.c b/python/psutil/psutil/_psutil_posix.c index 183dab0e12..daf11cd332 100644 --- a/python/psutil/psutil/_psutil_posix.c +++ b/python/psutil/psutil/_psutil_posix.c @@ -23,6 +23,7 @@ #include <netdb.h> #include <netinet/in.h> #include <net/if_dl.h> +#include <sys/ioctl.h> #endif #if defined(__sun) |