- Avoid WCOREDUMP complation errors for systems that lack it
 - Avoid SIGCHLD warnings from entropy commands
diff --git a/session.c b/session.c
index 480a163..23c5660 100644
--- a/session.c
+++ b/session.c
@@ -1473,7 +1473,11 @@
 		channel_request_start(s->chanid,
 		    "exit-signal", 0);
 		packet_put_int(WTERMSIG(status));
+#ifdef WCOREDUMP
 		packet_put_char(WCOREDUMP(status));
+#else /* WCOREDUMP */
+		packet_put_char(0);
+#endif /* WCOREDUMP */
 		packet_put_cstring("");
 		packet_put_cstring("");
 		packet_send();