diff options
author | Damien Miller <djm@mindrot.org> | 2000-04-21 16:13:07 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-04-21 16:13:07 +1000 |
commit | 06d84b78e90d89f1c658470d467c14b86727db61 (patch) | |
tree | 04e689ef4a9b2b2d7433adba587f0bea223e313e | |
parent | a552faf5646498c12acfd752394e289e4f9a226d (diff) |
- Define __progname in session.c if libc doesn't
-rw-r--r-- | session.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -65,7 +65,12 @@ do_child(const char *command, struct passwd * pw, const char *term, | |||
65 | 65 | ||
66 | /* import */ | 66 | /* import */ |
67 | extern ServerOptions options; | 67 | extern ServerOptions options; |
68 | #ifdef HAVE___PROGNAME | ||
68 | extern char *__progname; | 69 | extern char *__progname; |
70 | #else /* HAVE___PROGNAME */ | ||
71 | const char *__progname = "sshd"; | ||
72 | #endif /* HAVE___PROGNAME */ | ||
73 | |||
69 | extern int log_stderr; | 74 | extern int log_stderr; |
70 | extern int debug_flag; | 75 | extern int debug_flag; |
71 | 76 | ||