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:
Christian Göttsche 2021-09-24 20:31:48 +02:00
parent 1601931bbf
commit a710deeaa7

View File

@ -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;