diff mbox

Fix ada compile error on Windows x86_64 (committed as r241907 under the obvious rule)

Message ID VI1PR0801MB2031A2611412B8272A5B9181FFA70@VI1PR0801MB2031.eurprd08.prod.outlook.com
State New
Headers show

Commit Message

Tamar Christina Nov. 7, 2016, 2:24 p.m. UTC
Hi all,

The changes in r240999 re-arranged includes and
left out signal.h for Windows x86 builds.

This breaks the build and prevents GCC builds from
completing with messages such as:

adaint.c:3317:19: error: 'SIGINT' undeclared (first use in this function); did you mean 'SAIT'?

    else if (sig == SIGINT)
                    ^~~~~~

Bootstrapped successfully on x86_64-w64-mingw32.

Committed as r241907.

Thanks,
Tamar

gcc/

2016-11-07  Tamar Christina  <tamar.christina@arm.com>

	* gcc/ada/adaint.c: Added signal.h for Windows.

Comments

Eric Botcazou Nov. 7, 2016, 9:37 p.m. UTC | #1
> The changes in r240999 re-arranged includes and

> left out signal.h for Windows x86 builds.

> 

> This breaks the build and prevents GCC builds from

> completing with messages such as:

> 

> adaint.c:3317:19: error: 'SIGINT' undeclared (first use in this function);

> did you mean 'SAIT'?

> 

>     else if (sig == SIGINT)

>                     ^~~~~~

> 

> Bootstrapped successfully on x86_64-w64-mingw32.


Thanks for fixing the problem!

-- 
Eric Botcazou
diff mbox

Patch

diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c
index 353914708adbdf301f9d59aaa55debfed469f901..819ea47e449725b08c1a531b340ddc6a74b0e5db 100644
--- a/gcc/ada/adaint.c
+++ b/gcc/ada/adaint.c
@@ -190,6 +190,7 @@  UINT CurrentCCSEncoding;
 #include <accctrl.h>
 #include <aclapi.h>
 #include <tlhelp32.h>
+#include <signal.h>
 #undef DIR_SEPARATOR
 #define DIR_SEPARATOR '\\'