Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix ARM simulator build on Windows
@ 2021-12-09 14:02 Tom Tromey via Gdb-patches
  2021-12-10  2:25 ` Mike Frysinger via Gdb-patches
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey via Gdb-patches @ 2021-12-09 14:02 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

For a Windows-hosted build with arm-elf as the target, the sim build
fails like:

[...]sim-io.c:214:29: error: 'struct host_callback_struct' has no member named 'open'

The recent header reorganization seems to have caused this, because
now 'open' is redefined by the gnulib fcntl.h.

The fix is simple: remove the undef of 'open' from sim-io.c.
---
 sim/common/sim-io.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sim/common/sim-io.c b/sim/common/sim-io.c
index 8c40f7a0e73..8cc078c3cd2 100644
--- a/sim/common/sim-io.c
+++ b/sim/common/sim-io.c
@@ -37,8 +37,6 @@
 #include "sim-io.h"
 #include "sim/callback.h"
 
-#undef open
-
 /* Define the rate at which the simulator should poll the host
    for a quit. */
 #ifndef POLL_QUIT_INTERVAL
-- 
2.31.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-16 14:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-09 14:02 [PATCH] Fix ARM simulator build on Windows Tom Tromey via Gdb-patches
2021-12-10  2:25 ` Mike Frysinger via Gdb-patches
2021-12-16 14:58   ` Tom Tromey via Gdb-patches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox