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.
This commit is contained in:
Mike Frysinger
2021-12-16 02:25:21 -05:00
parent 6628ac006d
commit 4095db4c9c

View File

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