aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/sim-io.c')
-rw-r--r--sim/common/sim-io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/common/sim-io.c b/sim/common/sim-io.c
index edef26e..b5e874b 100644
--- a/sim/common/sim-io.c
+++ b/sim/common/sim-io.c
@@ -19,6 +19,8 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+/* This must come before any other includes. */
+#include "defs.h"
#include "sim-main.h"
#include "sim-io.h"
@@ -35,6 +37,8 @@
#include <stdlib.h>
+#undef open
+
/* Define the rate at which the simulator should poll the host
for a quit. */
#ifndef POLL_QUIT_INTERVAL