From d41bb2a7f0fe7e8ded0198850bb76b47f7d97e37 Mon Sep 17 00:00:00 2001 From: SId Price Date: Sat, 6 Aug 2022 16:30:58 -0600 Subject: [PATCH] Fix Windows build due to lack of alloca.h --- src/command.c | 4 ++++ src/gdb_main.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/command.c b/src/command.c index 662bbf8..a62a4df 100644 --- a/src/command.c +++ b/src/command.c @@ -43,7 +43,11 @@ #include "traceswo.h" #endif +#if defined(_WIN32) || defined(__CYGWIN__) +#include +#else #include +#endif static bool cmd_version(target *t, int argc, const char **argv); static bool cmd_help(target *t, int argc, const char **argv); diff --git a/src/gdb_main.c b/src/gdb_main.c index 981aa81..b1f6de9 100644 --- a/src/gdb_main.c +++ b/src/gdb_main.c @@ -39,7 +39,11 @@ #include "rtt.h" #endif +#if defined(_WIN32) || defined(__CYGWIN__) +#include +#else #include +#endif enum gdb_signal { GDB_SIGINT = 2,