--- include/my_global.h.orig 2015-02-02 22:18:57.873440040 -0700 +++ include/my_global.h 2015-02-02 22:17:45.125574689 -0700 @@ -451,7 +451,7 @@ #define NO_PISAM /* Not needed anymore */ #define NO_MISAM /* Not needed anymore */ #define NO_HASH /* Not needed anymore */ -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__MINGW32__) #define NO_DIR_LIBRARY /* Not standar dir-library */ #define USE_MY_STAT_STRUCT /* For my_lib */ #ifdef _SIZE_T_DEFINED