Commit 37c2d54c8590d3eaeb33aec198089dc917fd351d

Vicent Marti 2011-01-20T15:57:13

Fix compilation on MinGW Require <sys/types.h> to find the definition for off64_t. Signed-off-by: Vicent Marti <tanoku@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
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;