From: Mike Frysinger Date: Fri, 8 Dec 2023 04:38:56 +0000 (-0700) Subject: sim: m32r: include more glibc headers for the funcs we use [PR sim/29752] X-Git-Tag: binutils-2_42~680 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c80f001f0d9529f14fbd6f83145c45e9218ad1e;p=thirdparty%2Fbinutils-gdb.git sim: m32r: include more glibc headers for the funcs we use [PR sim/29752] Not exactly portable, but doesn't make the situation worse here, and fixes a lot of implicit function warnings. Bug: https://sourceware.org/PR29752 --- diff --git a/sim/m32r/traps.c b/sim/m32r/traps.c index 060b331c28f..80c4360235b 100644 --- a/sim/m32r/traps.c +++ b/sim/m32r/traps.c @@ -38,9 +38,14 @@ NB: The emulation is also missing argument conversion (endian & bitsize) even on Linux hosts. */ #ifdef __linux__ +#include +#include +#include +#include #include #include #include +#include #include #include #include