#include "runProcess.h"
#if defined(__MINGW32__)
+/* in Win32Utils.c */
+extern void maperrno (void);
+extern HsInt getTicksOfDay(void);
+#endif
+
+#if defined(__MINGW32__)
#include <io.h>
#include <fcntl.h>
#include "timeUtils.h"
#ifndef INLINE
# if defined(_MSC_VER)
# define INLINE extern __inline
-# elif defined(__GNUC__)
-# define INLINE extern inline
# else
-# define INLINE inline
+# define INLINE static inline
# endif
#endif