summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-09 05:25:58 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-09 05:25:58 +0000
commit3b73ea4288a8aee203bbf8e0b24e5452962c7f8c (patch)
tree5cf7cd8be922c542fbd693da14ff123955814489
parent3b188b4d2b3a992bd284fdeb591050924f7bd991 (diff)
util/nvmutil: clarify CFLAGS in code
makefile is correct, but lots of people don't read it. putting it iin code helps people avoid confusion. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/nvmutil/nvmutil.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 5aa000a2..3a5148ff 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -2,6 +2,13 @@
/* Copyright (c) 2022-2026 Leah Rowe <leah@libreboot.org> */
/* Copyright (c) 2023 Riku Viitanen <riku.viitanen@protonmail.com> */
+/*
+ * Written for portability among the Unices (Linux, BSD etc)
+ *
+ * Use these CFLAGS:
+ * -Os -Wall -Wextra -Werror -pedantic -std=c99 -D_POSIX_C_SOURCE=200809L
+ */
+
#define _POSIX_C_SOURCE 200809L
#ifdef __OpenBSD__