mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
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"
|
||||
#endif
|
||||
|
||||
#ifndef O_PATH
|
||||
#define O_PATH 010000000 // declare for ancient glibc versions
|
||||
#endif
|
||||
|
||||
|
||||
static long long btime = -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user