diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-11 23:24:52 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-11 23:25:50 +0000 |
| commit | 9195ff97b7f1b61ad06852c482a6570c322444bc (patch) | |
| tree | 28cc8d6020f6f5da9c72096654b3d15f25e4fd1e /util/spkmodem_recv/spkmodem-recv.c | |
| parent | 62c0cc68c5c211c81d360a134ec8362471622725 (diff) | |
util/spkmodem-recv: fix getopt prototype
i use -pedantic and std=c90
also add the define
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/spkmodem_recv/spkmodem-recv.c')
| -rw-r--r-- | util/spkmodem_recv/spkmodem-recv.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/spkmodem_recv/spkmodem-recv.c b/util/spkmodem_recv/spkmodem-recv.c index 0da59fc1..749e93ca 100644 --- a/util/spkmodem_recv/spkmodem-recv.c +++ b/util/spkmodem_recv/spkmodem-recv.c @@ -7,6 +7,8 @@ * This version is heavily modified, re-written based on OpenBSD Kernel Source * File Style Guide (KNF); this change is Copyright 2023,2026 Leah Rowe. */ +#define _POSIX_SOURCE + #ifdef __OpenBSD__ #include <sys/param.h> #endif @@ -25,6 +27,10 @@ static void err(int nvm_errval, const char *msg, ...); static const char * getnvmprogname(void); static void set_err_if_unset(int x); +int getopt(int, char * const *, const char *); +extern char *optarg; +extern int optind, opterr, optopt; + #if defined(__OpenBSD__) && defined(OpenBSD) #if OpenBSD >= 509 #ifndef HAVE_PLEDGE |
