- Define __progname in session.c if libc doesn't

This commit is contained in:
Damien Miller 2000-04-21 16:13:07 +10:00
parent a552faf564
commit 06d84b78e9
1 changed files with 5 additions and 0 deletions

View File

@ -65,7 +65,12 @@ do_child(const char *command, struct passwd * pw, const char *term,
/* import */
extern ServerOptions options;
#ifdef HAVE___PROGNAME
extern char *__progname;
#else /* HAVE___PROGNAME */
const char *__progname = "sshd";
#endif /* HAVE___PROGNAME */
extern int log_stderr;
extern int debug_flag;