components/openssh/patches/027-missing_include.patch
author Tomas Kuthan <tomas.kuthan@oracle.com>
Thu, 18 Jun 2015 07:01:42 -0700
changeset 4503 bf30d46ab06e
permissions -rw-r--r--
PSARC/2015/179 OpenSSH 6.8 20919294 upgrade OpenSSH to 6.8p1

#
# This patch adds a missing include to avoid compilation error.
#
# Recently, OpenSSH includes were refactored, so that header files no longer
# include system header files. System header files are now included in
# sources only.
#
# kex.h references sig_atomic_t, but no longer includes signal.h.
# Now every file including kex.h must include signal.h. gss-genr.c failed
# to do so, which resulted in unknown type compilation error.
#
# The patch has been accepted by upstream and will be part of 6.9 release.
#    https://bugzilla.mindrot.org/show_bug.cgi?id=2402
#
# When upgrading to some release >=6.9, this patch will be dropped.
#
--- a/gss-genr.c	
+++ a/gss-genr.c	
@@ -34,6 +34,7 @@ 
 #include <limits.h>
 #include <stdarg.h>
 #include <string.h>
+#include <signal.h>
 #include <unistd.h>
 
 #include "xmalloc.h"