summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-26 04:12:58 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:59:42 +0000
commitc2c24b7a24d1db58661bff43827832305900bdf9 (patch)
tree67810d521561e2b8da068da1e7df719dc16182bc /util/libreboot-utils/include
parent3d3193bb80f1f7676061cc238e59f20bc36d852d (diff)
nvmutil: fix lseek call when read pos i/o enabled
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/include')
-rw-r--r--util/libreboot-utils/include/common.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/util/libreboot-utils/include/common.h b/util/libreboot-utils/include/common.h
index c74da0a3..0c8fbd3d 100644
--- a/util/libreboot-utils/include/common.h
+++ b/util/libreboot-utils/include/common.h
@@ -83,7 +83,7 @@ int fchmod(int fd, mode_t mode);
#endif
#ifndef REAL_POS_IO
-#define REAL_POS_IO 0
+#define REAL_POS_IO 1
#endif
#ifndef LOOP_EAGAIN
@@ -473,11 +473,8 @@ int io_args(int fd, void *mem, size_t nrw,
off_t off, int rw_type);
int check_file(int fd, struct stat *st);
ssize_t rw_over_nrw(ssize_t r, size_t nrw);
-#if !defined(REAL_POS_IO) || \
- REAL_POS_IO < 1
off_t lseek_on_eintr(int fd, off_t off,
int whence, int loop_eagain, int loop_eintr);
-#endif
int try_err(int loop_err, int errval);
/* Error handling and cleanup