#include <stdlib.h>
/* For strsignal. */
#include <string.h>
+#ifdef HAVE_UNISTD_H
+/* For chdir. */
+#include <unistd.h>
+#endif
+
+#include "bfd.h"
+#include "environ.h"
#include "sim-main.h"
#include "sim-signal.h"
#include "sim/callback.h"
-#include "bfd.h"
-#include "environ.h"
-
#ifndef HAVE_STRSIGNAL
/* While libiberty provides a fallback, it doesn't provide a prototype. */
extern const char *strsignal (int);
#endif
-#ifdef HAVE_UNISTD_H
-/* For chdir. */
-#include <unistd.h>
-#endif
-
static void usage (void);
extern host_callback default_callback;