Skip to content

Commit

Permalink
fix giampaolo#607: DUPLEX_UNKNOWN is not defined on old RedHat versions
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Mar 14, 2015
1 parent 772d730 commit 1a5e238
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions psutil/_psutil_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ enum {
IOPRIO_WHO_PROCESS = 1,
};

// May happen on old RedHat versions, see:
// https://github.com/giampaolo/psutil/issues/607
#ifndef DUPLEX_UNKNOWN
#define DUPLEX_UNKNOWN 0xff
#endif

static inline int
ioprio_get(int which, int who)
{
Expand Down

0 comments on commit 1a5e238

Please sign in to comment.