summaryrefslogtreecommitdiff
path: root/util/nvmutil/nvmutil.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-09 16:29:05 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-09 16:29:05 +0000
commit31bd21a466716c43f6cb3b4e3c8ed5ffd445a543 (patch)
tree9aacfb8a6bca3c1cce68820c286fd41bf70b205a /util/nvmutil/nvmutil.c
parent8fc0f4fa07860d4dccd5a46a700852190918388f (diff)
util/nvmutil: use even older define for pread
with this new define, we can target even older systems from the late 90s. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
-rw-r--r--util/nvmutil/nvmutil.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index c763727d..82f67788 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -15,7 +15,9 @@
* -Os -Wall -Wextra -Werror -pedantic -std=c99
*/
-#define _POSIX_C_SOURCE 200809L
+#ifndef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 500
+#endif
#ifdef __OpenBSD__
#include <sys/param.h>