summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-04-21 16:13:07 +1000
committerDamien Miller <djm@mindrot.org>2000-04-21 16:13:07 +1000
commit06d84b78e90d89f1c658470d467c14b86727db61 (patch)
tree04e689ef4a9b2b2d7433adba587f0bea223e313e
parenta552faf5646498c12acfd752394e289e4f9a226d (diff)
- Define __progname in session.c if libc doesn't
-rw-r--r--session.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/session.c b/session.c
index 840a4e9e..68a016e0 100644
--- a/session.c
+++ b/session.c
@@ -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;