This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] PR 65867 - bootstrap fails for mingw32 due to missing header in ssp.c


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

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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]