Skip to content

Commit

Permalink
Linux: fix missing SPEED_UNKNOWN definition (#2156)
Browse files Browse the repository at this point in the history
Signed-off-by: Amir Rossert <[email protected]>
  • Loading branch information
arossert authored Oct 20, 2022
1 parent cd8827d commit 8e58bce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions psutil/_psutil_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8e58bce

Please sign in to comment.