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
This commit is contained in:
Klaus Holst Jacobsen authored and GitHub committed 2023-12-04 08:25:42 -08:00
1 parent f3a6cb6af3
commit 543c9d74f2
1 file changed
+3
+3
View File
@@ -76,6 +76,9 @@
#include <sys/time.h>
#endif
#endif
#ifdef HAVE_GETOPT_OPTRESET
#include <getopt.h>
#endif
#include "bsdunzip.h"
#include "passphrase.h"