diff --git a/gen_input/templates/llvm/CORENAME.cpp.gtl b/gen_input/templates/llvm/CORENAME.cpp.gtl index 2a6b4e5..2c70e42 100644 --- a/gen_input/templates/llvm/CORENAME.cpp.gtl +++ b/gen_input/templates/llvm/CORENAME.cpp.gtl @@ -31,12 +31,14 @@ *******************************************************************************/ // clang-format off #include +// vm_base needs to be included before gdb_session as termios.h (via boost and gdb_server) has a define which clashes with a variable +// name in ConstantRange.h +#include +#include #include #include -#include -#include -#include #include +#include <%def fcsr = registers.find {it.name=='FCSR'} if(fcsr != null) {%> #include <%}%> diff --git a/src/vm/llvm/vm_tgc5c.cpp b/src/vm/llvm/vm_tgc5c.cpp index 3253990..b607f0a 100644 --- a/src/vm/llvm/vm_tgc5c.cpp +++ b/src/vm/llvm/vm_tgc5c.cpp @@ -31,10 +31,12 @@ *******************************************************************************/ // clang-format off #include +// vm_base needs to be included before gdb_session as termios.h (via boost and gdb_server) has a define which clashes with a variable +// name in ConstantRange.h +#include #include #include #include -#include #include #include