From d12ca7fd8ee9e090b784812648a101335e507a2c Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 1 Apr 2026 19:09:26 +0100 Subject: lbutils/file: don't use undefined USE_OPENAT clang -Weverything told me to Signed-off-by: Leah Rowe --- util/libreboot-utils/lib/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/libreboot-utils/lib/file.c') diff --git a/util/libreboot-utils/lib/file.c b/util/libreboot-utils/lib/file.c index 862e82cc..ae7f007d 100644 --- a/util/libreboot-utils/lib/file.c +++ b/util/libreboot-utils/lib/file.c @@ -616,7 +616,7 @@ open_file_on_eintr(const char *path, #if defined(__linux__) && \ - ((USE_OPENAT) < 1) /* we use openat2 on linux */ + (!defined(USE_OPENAT) || ((USE_OPENAT) < 1)) /* we use openat2 on linux */ int openat_on_eintr(int dirfd, const char *path, int flags, mode_t mode) -- cgit v1.2.1