sim: m32r: add __linux__ hack for non-Linux hosts
[binutils-gdb.git] / sim / m32r / mloop.in
index 26d312c00fe81495bd4087816be0036550a993e7..6b0d0dec61666ad599c4d4466f06bf498a448a49 100644 (file)
@@ -1,6 +1,6 @@
 # Simulator main loop for m32r. -*- C -*-
 #
-# Copyright (C) 1996-2018 Free Software Foundation, Inc.
+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Simulators.
 #
@@ -42,6 +42,7 @@ case "x$1" in
 xsupport)
 
 cat <<EOF
+#include <stdlib.h>
 
 static INLINE const IDESC *
 extract16 (SIM_CPU *current_cpu, PCADDR pc, CGEN_INSN_INT insn,