libgcc: Include stdlib.h for abort() on mingw32

Message ID 20240130170432.2088711-1-raj.khem@gmail.com
State Accepted
Headers
Series libgcc: Include stdlib.h for abort() on mingw32 |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Khem Raj Jan. 30, 2024, 5:04 p.m. UTC
  libgcc/
        * config/i386/enable-execute-stack-mingw32.c: Include
        stdlib.h for abort() definition.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 libgcc/config/i386/enable-execute-stack-mingw32.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Jeff Law Feb. 2, 2024, 2:44 p.m. UTC | #1
On 1/30/24 10:04, Khem Raj wrote:
> libgcc/
>          * config/i386/enable-execute-stack-mingw32.c: Include
>          stdlib.h for abort() definition.
Thanks.  Pushed to the trunk.
jeff
  

Patch

diff --git a/libgcc/config/i386/enable-execute-stack-mingw32.c b/libgcc/config/i386/enable-execute-stack-mingw32.c
index 99006d97a4e..563de02156a 100644
--- a/libgcc/config/i386/enable-execute-stack-mingw32.c
+++ b/libgcc/config/i386/enable-execute-stack-mingw32.c
@@ -23,6 +23,7 @@ 
    <http://www.gnu.org/licenses/>.  */
 
 #define WIN32_LEAN_AND_MEAN
+#include <stdlib.h>
 #include <windows.h>
 
 extern void __enable_execute_stack (void *);