Skip to content

Commit 543c9d7

Browse files
Including getopt.h if HAVE_GETOPT_OPTRESET is defined (libarchive#2007)
On platforms that uses optreset we must also include getopt.h to have it defined
1 parent f3a6cb6 commit 543c9d7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

unzip/bsdunzip.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@
7676
#include <sys/time.h>
7777
#endif
7878
#endif
79+
#ifdef HAVE_GETOPT_OPTRESET
80+
#include <getopt.h>
81+
#endif
7982

8083
#include "bsdunzip.h"
8184
#include "passphrase.h"

0 commit comments

Comments
 (0)