1
0
mirror of https://github.com/xzeldon/htop.git synced 2025-04-08 12:07:08 +03: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: 
This commit is contained in:
Christian Göttsche 2021-09-24 20:31:48 +02:00
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;