mirror of https://github.com/xzeldon/htop.git
Linux: define O_PATH if not defined
Defining O_PATH if not defined by <fcntl.h> does not really add any maintenance cost and might improve some portability. Related: #804
This commit is contained in:
parent
1601931bbf
commit
a710deeaa7
|
@ -58,6 +58,10 @@ in the source distribution for its full text.
|
||||||
#include "LibSensors.h"
|
#include "LibSensors.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef O_PATH
|
||||||
|
#define O_PATH 010000000 // declare for ancient glibc versions
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static long long btime = -1;
|
static long long btime = -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue