public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: m32r: include more glibc headers for the funcs we use [PR sim/29752]
@ 2023-12-08  4:42 Michael Frysinger
  0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2023-12-08  4:42 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9c80f001f0d9529f14fbd6f83145c45e9218ad1e

commit 9c80f001f0d9529f14fbd6f83145c45e9218ad1e
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Thu Dec 7 21:38:56 2023 -0700

    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:
---
 sim/m32r/traps.c | 5 +++++
 1 file changed, 5 insertions(+)

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 <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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-08  4:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-08  4:42 [binutils-gdb] sim: m32r: include more glibc headers for the funcs we use [PR sim/29752] Michael Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).