Fix compilation on MinGW Require <sys/types.h> to find the definition for off64_t. Signed-off-by: Vicent Marti <tanoku@gmail.com>
diff --git a/src/git2/types.h b/src/git2/types.h
index de7b9bc..cfc0cf3 100644
--- a/src/git2/types.h
+++ b/src/git2/types.h
@@ -47,6 +47,8 @@ GIT_BEGIN_DECL
* NOTE: These types should match those that are returned by our internal
* stat() functions, for all platforms.
*/
+#include <sys/types.h>
+
#if defined(_MSC_VER)
typedef __int64 git_off_t;