[2/3,committed] sim: m32r: include more glibc headers for the funcs we use [PR sim/29752]

Message ID 20231208044203.25315-2-vapier@gentoo.org
State New
Headers
Series [1/3,committed] sim: m32r: add more cgen prototypes for traps |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Patch is already merged

Commit Message

Mike Frysinger Dec. 8, 2023, 4:42 a.m. UTC
  Not exactly portable, but doesn't make the situation worse here, and
fixes a lot of implicit function warnings.

Bug: https://sourceware.org/PR29752
---
 sim/m32r/traps.c | 5 +++++
 1 file changed, 5 insertions(+)
  

Patch

diff --git a/sim/m32r/traps.c b/sim/m32r/traps.c
index 060b331c28f1..80c4360235b6 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 <syslog.h>
+#include <sys/file.h>
+#include <sys/fsuid.h>
+#include <sys/ioctl.h>
 #include <sys/mman.h>
 #include <sys/poll.h>
 #include <sys/resource.h>
+#include <sys/sendfile.h>
 #include <sys/sysinfo.h>
 #include <sys/stat.h>
 #include <sys/time.h>