public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch libgcc committed]: Fix missing include of windows.h for mingw targets
@ 2011-06-09 22:05 Kai Tietz
  0 siblings, 0 replies; only message in thread
From: Kai Tietz @ 2011-06-09 22:05 UTC (permalink / raw)
  To: GCC Patches; +Cc: Rainer Orth

Hello,

by recent changes about HAVE_ENABLE_EXECUTE_STACK and moving code into
libgcc2.c the necessary header include of windows.h was removed for
config/i386/mingw32.h for LIBGCC2 case.  This header is necessary for
trampoline code in libgcc2.c, as for mingw target platform API is
used.

ChangeLog

        * libgcc2.c (L_trampoline): Include windows.h for mingw targets.

Patch tested and applied at  revision 174860.

Regards,
Kai

Index: libgcc2.c
===================================================================
--- libgcc2.c   (revision 174854)
+++ libgcc2.c   (working copy)
@@ -2032,6 +2032,7 @@
 /* Jump to a trampoline, loading the static chain address.  */

 #if defined(WINNT) && ! defined(__CYGWIN__)
+#include <windows.h>
 int getpagesize (void);
 int mprotect (char *,int, int);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-09 21:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-09 22:05 [patch libgcc committed]: Fix missing include of windows.h for mingw targets Kai Tietz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).