- (djm) Pull in getopt(3) from OpenBSD libc for the optreset extension.
diff --git a/ssh.c b/ssh.c
index 98854d2..374630f 100644
--- a/ssh.c
+++ b/ssh.c
@@ -259,6 +259,10 @@
 	struct passwd *pw;
 	int dummy;
 	uid_t original_effective_uid;
+	extern int optopt;
+	extern int optind;
+	extern int optreset;
+	extern char *optarg;
 
 	__progname = get_progname(av[0]);
 	init_rng();