This was actually approved by Kai in the BZ eons ago. I've installed the patch on the trunk.

Essentially there's a missing #include for mingw32 that prevents libssp from building.

Jeff
commit d48dbf6568626d96cc948d8aaf7ef0265689a213
Author: law <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Tue Feb 9 19:16:30 2016 +0000

    2015-04-25  Daniel Starke  <daniel.f.sta...@freenet.de>
    
        PR target/65867
        * ssp.c: Added wincrypt.h include for Windows targets.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233253 
138bc75d-0d04-0410-961f-82ee72b054a4

diff --git a/libssp/ChangeLog b/libssp/ChangeLog
index 47e7339..036257f 100644
--- a/libssp/ChangeLog
+++ b/libssp/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-25  Daniel Starke  <daniel.f.sta...@freenet.de>
+
+       PR target/65867
+       * ssp.c: Added wincrypt.h include for Windows targets.
+
 2015-05-13  Michael Haubenwallner  <michael.haubenwall...@ssi-schaefer.com>
 
        * Makefile.in: Regenerated with automake-1.11.6.
diff --git a/libssp/ssp.c b/libssp/ssp.c
index 38e3ec8..69805bc 100644
--- a/libssp/ssp.c
+++ b/libssp/ssp.c
@@ -56,6 +56,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If 
not, see
    to the console using  "CONOUT$"   */
 #if defined (_WIN32) && !defined (__CYGWIN__)
 #include <windows.h>
+#include <wincrypt.h>
 # define _PATH_TTY "CONOUT$"
 #else
 # define _PATH_TTY "/dev/tty"

Reply via email to