Browse Source

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.
binutils-2_38-branch
Mike Frysinger 4 years ago
parent
commit
4095db4c9c
  1. 4
      sim/common/sim-io.c

4
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

Loading…
Cancel
Save