#define PERROR(arg) perror(arg);exit(-1)
-#ifndef HAVE_A_OUT_H
+#if !defined(HAVE_A_OUT_H) && !defined(WIN32_NATIVE)
unexec (char *, char *, void *, void *, void *)
{
PERROR("cannot unexec() a.out.h not installed");
#ifndef MAX_PATH
#define MAX_PATH 260
#endif
+
+#ifdef MINGW
+#include <../../include/a.out.h>
+#else
#include <a.out.h>
+#endif
#define ALLOC_UNIT 0xFFFF
#define ALLOC_MASK ~((unsigned long)(ALLOC_UNIT))