diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-12-16 02:25:21 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-12-16 02:25:21 -0500 |
commit | 4095db4c9ced51193a218ff57ecd81f5be95b05e (patch) | |
tree | e880c0f785139b0b142a11c404f032e0fd11d17b /sim | |
parent | 6628ac006d166a7e373846538a6097a3150946e9 (diff) | |
download | gdb-4095db4c9ced51193a218ff57ecd81f5be95b05e.zip gdb-4095db4c9ced51193a218ff57ecd81f5be95b05e.tar.gz gdb-4095db4c9ced51193a218ff57ecd81f5be95b05e.tar.bz2 |
sim: fix mingw builds with replacement gnulib open
The header shuffling in here broke the workaround for gnulib defining
"open". Move it back before the sim-specific includes to fix. This
is because the callback struct in the headers has an "open" member and
this file tries to call that.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/common/sim-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/common/sim-io.c b/sim/common/sim-io.c index 8c40f7a..874f642 100644 --- a/sim/common/sim-io.c +++ b/sim/common/sim-io.c @@ -33,12 +33,12 @@ #include <unistd.h> #endif +#undef open + #include "sim-main.h" #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 |