mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: specifically enable -std=c99
I also needed: #define _POSIX_C_SOURCE 200809L I use -pedantic with -Wall -Wextra -Werror, which forces very strict error handling and ISO C; this means pread and pwrite aren't available. The define fixes this. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# SPDX-FileCopyrightText: 2023 Riku Viitanen <riku.viitanen@protonmail.com>
|
||||
|
||||
CC?=cc
|
||||
CFLAGS?=-Os -Wall -Wextra -Werror -pedantic
|
||||
CFLAGS?=-Os -Wall -Wextra -Werror -pedantic -std=c99 -D_POSIX_C_SOURCE=200809L
|
||||
DESTDIR?=
|
||||
PREFIX?=/usr/local
|
||||
INSTALL?=install
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
/* Copyright (c) 2022-2026 Leah Rowe <leah@libreboot.org> */
|
||||
/* Copyright (c) 2023 Riku Viitanen <riku.viitanen@protonmail.com> */
|
||||
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
|
||||
#ifdef __OpenBSD__
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user