From a710deeaa7a806771283949b3557e9945521b659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 24 Sep 2021 20:31:48 +0200 Subject: Linux: define O_PATH if not defined Defining O_PATH if not defined by does not really add any maintenance cost and might improve some portability. Related: #804 --- linux/LinuxProcessList.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3