From 543c9d74f23ecdf51cf5c41877425ff509e718db Mon Sep 17 00:00:00 2001 From: Klaus Holst Jacobsen <48069914+klausholstjacobsen@users.noreply.github.com> Date: Mon, 4 Dec 2023 17:25:42 +0100 Subject: [PATCH] Including getopt.h if HAVE_GETOPT_OPTRESET is defined (#2007) On platforms that uses optreset we must also include getopt.h to have it defined --- unzip/bsdunzip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unzip/bsdunzip.c b/unzip/bsdunzip.c index 9ed1d7bf6..6c6e50ae2 100644 --- a/unzip/bsdunzip.c +++ b/unzip/bsdunzip.c @@ -76,6 +76,9 @@ #include #endif #endif +#ifdef HAVE_GETOPT_OPTRESET +#include +#endif #include "bsdunzip.h" #include "passphrase.h" -- 2.47.2