diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-04-01 19:09:26 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-04-01 19:09:26 +0100 |
| commit | d12ca7fd8ee9e090b784812648a101335e507a2c (patch) | |
| tree | 44839ddcab8989de45c51545cf371c14e634f7e9 /util/libreboot-utils | |
| parent | 736a2504bbe1014fc2804c311e10b72826a71b74 (diff) | |
lbutils/file: don't use undefined USE_OPENAT
clang -Weverything told me to
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils')
| -rw-r--r-- | util/libreboot-utils/lib/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
