From 71a431b1a6b25f4c1bdfb8c753850df7e3b0e31c Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Fri, 20 Oct 2023 13:17:32 +0200 Subject: [PATCH] fix error on python 2 --- psutil/arch/linux/net.c | 1 + psutil/arch/linux/users.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/psutil/arch/linux/net.c b/psutil/arch/linux/net.c index f8a55caba..522a55dfc 100644 --- a/psutil/arch/linux/net.c +++ b/psutil/arch/linux/net.c @@ -19,6 +19,7 @@ typedef __u16 u16; typedef __u8 u8; #endif + // Avoid redefinition of struct sysinfo with musl libc. #define _LINUX_SYSINFO_H #include diff --git a/psutil/arch/linux/users.c b/psutil/arch/linux/users.c index 377278cde..9ca010a19 100644 --- a/psutil/arch/linux/users.c +++ b/psutil/arch/linux/users.c @@ -7,6 +7,8 @@ #include #include +#include "../../_psutil_common.h" + PyObject * psutil_users(PyObject *self, PyObject *args) {