From b324b344418ddb25c9a468cd76698f137948d490 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Tue, 26 Apr 2022 13:26:41 -0500 Subject: [PATCH] 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. --- python/psutil/psutil/_psutil_posix.c | 1 + 1 file changed, 1 insertion(+) 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 #include #include +#include #endif #if defined(__sun)