- (stevek) Reworked progname support.
 - (bal) Misplaced #include "includes.h" in bsd-setproctitle.c.  Patch by
   Shinichi Maruyama <marya@st.jip.co.jp>

I assume the progname patch was finished.  I believe stevek is on vacation,
but it passes compiling under Linux and NeXTStep.
diff --git a/sshd.c b/sshd.c
index 56a39bd..4a5f662 100644
--- a/sshd.c
+++ b/sshd.c
@@ -78,6 +78,12 @@
 #define O_NOCTTY	0
 #endif
 
+#ifdef HAVE___PROGNAME
+extern char *__progname;
+#else
+char *__progname;
+#endif
+
 /* Server configuration options. */
 ServerOptions options;
 
@@ -562,6 +568,7 @@
 	int startup_p[2];
 	int startups = 0;
 
+	__progname = get_progname(av[0]);
 	init_rng();
 
 	/* Save argv[0]. */