- (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/ssh.c b/ssh.c
index ab32e3b..a1cedc7 100644
--- a/ssh.c
+++ b/ssh.c
@@ -62,9 +62,9 @@
 
 #ifdef HAVE___PROGNAME
 extern char *__progname;
-#else /* HAVE___PROGNAME */
-static const char *__progname = "ssh";
-#endif /* HAVE___PROGNAME */
+#else
+char *__progname;
+#endif
 
 /* Flag indicating whether IPv4 or IPv6.  This can be set on the command line.
    Default value is AF_UNSPEC means both IPv4 and IPv6. */
@@ -237,6 +237,7 @@
 	int dummy;
 	uid_t original_effective_uid;
 
+	__progname = get_progname(av[0]);
 	init_rng();
 
 	/*