[2/3,committed] sim: m32r: include more glibc headers for the funcs we use [PR sim/29752]
Checks
Commit Message
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(+)
@@ -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>