summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-09-24 20:31:48 +0200
committerChristian Göttsche <cgzones@googlemail.com>2021-09-24 20:31:48 +0200
commita710deeaa7a806771283949b3557e9945521b659 (patch)
tree360cbcfde5d61fdd7d5290989f38161e757e8466
parent1601931bbf7837a2a910b854d58716da344aeb22 (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.c4
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;

© 2014-2022 Faster IT GmbH | imprint | privacy policy