diff options
author | Amir Rossert <amir.rossert@gmail.com> | 2022-10-20 19:13:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-21 01:13:28 +0200 |
commit | 8e58bce0409db7415b963fc394e93a2a4c68d61c (patch) | |
tree | e4b00856a34020f834ad75bd9c7add95712ba089 | |
parent | cd8827d065d63114060aae69f36b447006c5a70f (diff) | |
download | psutil-8e58bce0409db7415b963fc394e93a2a4c68d61c.tar.gz |
Linux: fix missing SPEED_UNKNOWN definition (#2156)
Signed-off-by: Amir Rossert <amir.rossert@gmail.com>
-rw-r--r-- | psutil/_psutil_linux.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/psutil/_psutil_linux.c b/psutil/_psutil_linux.c index 1ed1f91a..0bacb204 100644 --- a/psutil/_psutil_linux.c +++ b/psutil/_psutil_linux.c @@ -58,6 +58,11 @@ static const int NCPUS_START = sizeof(unsigned long) * CHAR_BIT; #endif +#ifndef SPEED_UNKNOWN + #define SPEED_UNKNOWN -1 +#endif + + #if PSUTIL_HAVE_IOPRIO enum { IOPRIO_WHO_PROCESS = 1, |