From: Klaus Holst Jacobsen <48069914+klausholstjacobsen@users.noreply.github.com> Date: Mon, 4 Dec 2023 16:25:42 +0000 (+0100) Subject: Including getopt.h if HAVE_GETOPT_OPTRESET is defined (#2007) X-Git-Tag: v3.7.3~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=543c9d74f23ecdf51cf5c41877425ff509e718db;p=thirdparty%2Flibarchive.git 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 --- 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"