From a9e5f9ef4f476583da55fecd0134821ef8d66329 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 12 Mar 2026 13:25:13 +0000 Subject: util/nvmutil: portable errno Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util/nvmutil') diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 0ea2ad19..e1a2cf1e 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -431,6 +431,10 @@ static const struct commands command[] = { */ static size_t cmd_index = CMD_NULL; +#ifndef errno +extern int errno; +#endif + typedef char assert_argc3[(ARGC_3==3)?1:-1]; typedef char assert_argc4[(ARGC_4==4)?1:-1]; -- cgit v1.2.1