mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 04:32:41 +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>
|
# SPDX-FileCopyrightText: 2023 Riku Viitanen <riku.viitanen@protonmail.com>
|
||||||
|
|
||||||
CC?=cc
|
CC?=cc
|
||||||
CFLAGS?=-Os -Wall -Wextra -Werror -pedantic
|
CFLAGS?=-Os -Wall -Wextra -Werror -pedantic -std=c99 -D_POSIX_C_SOURCE=200809L
|
||||||
DESTDIR?=
|
DESTDIR?=
|
||||||
PREFIX?=/usr/local
|
PREFIX?=/usr/local
|
||||||
INSTALL?=install
|
INSTALL?=install
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
/* Copyright (c) 2022-2026 Leah Rowe <leah@libreboot.org> */
|
/* Copyright (c) 2022-2026 Leah Rowe <leah@libreboot.org> */
|
||||||
/* Copyright (c) 2023 Riku Viitanen <riku.viitanen@protonmail.com> */
|
/* Copyright (c) 2023 Riku Viitanen <riku.viitanen@protonmail.com> */
|
||||||
|
|
||||||
|
#define _POSIX_C_SOURCE 200809L
|
||||||
|
|
||||||
#ifdef __OpenBSD__
|
#ifdef __OpenBSD__
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user