From dc69e44829e81c1eedcd05095be226bfdfe25917 Mon Sep 17 00:00:00 2001 From: Yelninei Date: Thu, 11 Dec 2025 13:08:39 +0000 Subject: [PATCH] CPU(Linux): Fix build on GNU. --- src/detection/cpu/cpu_linux.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/detection/cpu/cpu_linux.c b/src/detection/cpu/cpu_linux.c index 9edcac48f..db9e4ce7e 100644 --- a/src/detection/cpu/cpu_linux.c +++ b/src/detection/cpu/cpu_linux.c @@ -14,6 +14,10 @@ #define FF_CPUINFO_PATH "/proc/cpuinfo" +#ifndef O_PATH +#define O_PATH 0 +#endif + static double readTempFile(int dfd, const char* filename, FFstrbuf* buffer) { if (filename ? !ffReadFileBufferRelative(dfd, filename, buffer) : !ffReadFDBuffer(dfd, buffer))