Michel Lind 1c324b
--- a/log.c
Michel Lind 1c324b
+++ b/log.c
Michel Lind 1c324b
@@ -455,12 +455,14 @@ void
Michel Lind 1c324b
 sshsigdie(const char *file, const char *func, int line, int showfunc,
Michel Lind 1c324b
     LogLevel level, const char *suffix, const char *fmt, ...)
Michel Lind 1c324b
 {
Michel Lind 1c324b
+#ifdef SYSLOG_R_SAFE_IN_SIGHAND
Michel Lind 1c324b
 	va_list args;
Michel Lind 1c324b
 
Michel Lind 1c324b
 	va_start(args, fmt);
Michel Lind 1c324b
 	sshlogv(file, func, line, showfunc, SYSLOG_LEVEL_FATAL,
Michel Lind 1c324b
 	    suffix, fmt, args);
Michel Lind 1c324b
 	va_end(args);
Michel Lind 1c324b
+#endif
Michel Lind 1c324b
 	_exit(1);
Michel Lind 1c324b
 }
Michel Lind 1c324b