PR 65867 - bootstrap fails for mingw32 due to missing header in ssp.c
diff mbox

Message ID 553B455F.10809@freenet.de
State New
Headers show

Commit Message

daniel.f.starke@freenet.de April 25, 2015, 7:42 a.m. UTC
Hello,

This patch works around a missing include in windows.h (mingw.org) for 
ssp.c.

ChangeLog

2015-04-25  Daniel Starke  <daniel.f.starke@freenet.de>

     * libssp/ssp.c: Added wincrypt.h include for Windows targets.

Bootstrapped i686-pc-mingw32 (mingw32 version 3.20).

Regards,
Daniel

Patch
diff mbox

diff -uart gcc-5.1.0-orig/libssp/ssp.c gcc-5.1.0/libssp/ssp.c
--- gcc-5.1.0-orig/libssp/ssp.c	2015-04-22 20:15:21 +0000
+++ gcc-5.1.0/libssp/ssp.c	2015-04-22 20:15:32 +0000
@@ -56,6 +56,7 @@ 
     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"