Skip to content

Commit

Permalink
fix error on python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Oct 20, 2023
1 parent 15904d1 commit 71a431b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions psutil/arch/linux/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
typedef __u16 u16;
typedef __u8 u8;
#endif

// Avoid redefinition of struct sysinfo with musl libc.
#define _LINUX_SYSINFO_H
#include <linux/ethtool.h>
Expand Down
2 changes: 2 additions & 0 deletions psutil/arch/linux/users.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <Python.h>
#include <utmp.h>

#include "../../_psutil_common.h"


PyObject *
psutil_users(PyObject *self, PyObject *args) {
Expand Down

0 comments on commit 71a431b

Please sign in to comment.