aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/libgcc2.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c1c12ea..aa9a4ec 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2011-06-09 Kai Tietz <ktietz@redhat.com>
+
+ * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
+
2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
* config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 94763d6..fbf5dcc 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -2032,6 +2032,7 @@ __clear_cache (char *beg __attribute__((__unused__)),
/* 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);