diff --git a/include/share/compat.h b/include/share/compat.h index 950a1826..279e8660 100644 --- a/include/share/compat.h +++ b/include/share/compat.h @@ -55,6 +55,12 @@ #ifndef ftello #define ftello ftell #endif +#else +/* MinGW */ +#if !defined(HAVE_FSEEKO) +# define fseeko fseeko64 +# define ftello ftello64 +#endif #endif #endif