]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: m32r: include more glibc headers for the funcs we use [PR sim/29752]
authorMike Frysinger <vapier@gentoo.org>
Fri, 8 Dec 2023 04:38:56 +0000 (21:38 -0700)
committerMike Frysinger <vapier@gentoo.org>
Fri, 8 Dec 2023 04:41:27 +0000 (21:41 -0700)
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

index 060b331c28f13c2d6da87ad87b752a20b53a2d46..80c4360235b6bcec822a939fdd6dd7c70bf34dbc 100644 (file)
    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>