#ifdef HAVE_GETOPT_H
# include <getopt.h>
#endif
+#ifndef HAVE_GETOPT_OPTRESET
+#define getopt(ac, av, o) BSDgetopt(ac, av, o)
+#endif
#ifdef HAVE_BSTRING_H
# include <bstring.h>
#endif
#ifdef HAVE_UTIME_H
# include <utime.h>
#endif
-#ifdef HAVE_VIS_H
-# include <vis.h>
-#endif
#include "version.h"
#include "openbsd-compat/openbsd-compat.h"
#include "openbsd-compat/bsd-cygwin_util.h"