diff options
author | Thomas Heijligen <thomas.heijligen@secunet.com> | 2023-02-20 13:18:50 +0100 |
---|---|---|
committer | Anastasia Klimchuk <aklm@chromium.org> | 2023-04-27 09:31:49 +0000 |
commit | ba6acffc69b679829bf46f3636b4f6c04bfa7729 (patch) | |
tree | aabff1051eef717fe927d0d42e7909be6594c168 /cli_classic.c | |
parent | 7348eb3320d277aa1d42563009f77189701b47f0 (diff) | |
download | flashrom-ba6acffc69b679829bf46f3636b4f6c04bfa7729.tar.gz flashrom-ba6acffc69b679829bf46f3636b4f6c04bfa7729.tar.bz2 flashrom-ba6acffc69b679829bf46f3636b4f6c04bfa7729.zip |
cli_classic: include a fallback inplementation of getopt
Some systems, DJGPP/DOS for now, may not provide getopt and their gnu
extensions. So provide a fallback implementation.
The code is based on musl libc.
Change-Id: I6ebbde075014e3b45b0f9e04b34b72aa969e1197
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/73102
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'cli_classic.c')
-rw-r--r-- | cli_classic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli_classic.c b/cli_classic.c index e4db91316..d804caec8 100644 --- a/cli_classic.c +++ b/cli_classic.c @@ -24,7 +24,7 @@ #include <string.h> #include <stdbool.h> #include <stdlib.h> -#include <getopt.h> +#include <cli_classic.h> #include "flash.h" #include "flashchips.h" #include "fmap.h" |