This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] PR 65867 - bootstrap fails for mingw32 due to missing header in ssp.c
- From: daniel dot f dot starke at freenet dot de
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 25 Apr 2015 09:42:23 +0200
- Subject: [PATCH] PR 65867 - bootstrap fails for mingw32 due to missing header in ssp.c
- Authentication-results: sourceware.org; auth=none
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"