diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-09-24 20:31:48 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-09-24 20:31:48 +0200 |
commit | a710deeaa7a806771283949b3557e9945521b659 (patch) | |
tree | 360cbcfde5d61fdd7d5290989f38161e757e8466 | |
parent | 1601931bbf7837a2a910b854d58716da344aeb22 (diff) |
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
-rw-r--r-- | linux/LinuxProcessList.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index 0baf0bb0..74d9ee48 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -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; |