summaryrefslogtreecommitdiff
path: root/src/git2
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-01-20 15:57:13 -0800
committerVicent Marti <tanoku@gmail.com>2011-01-20 15:57:13 -0800
commit37c2d54c8590d3eaeb33aec198089dc917fd351d (patch)
tree761d91610950fbdbb84596b158e1825429a933cd /src/git2
parentc8f5ff8f65617e6e097dd779492bd7af47232d4f (diff)
downloadlibgit2-37c2d54c8590d3eaeb33aec198089dc917fd351d.tar.gz
Fix compilation on MinGW
Require <sys/types.h> to find the definition for off64_t. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/git2')
-rw-r--r--src/git2/types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/git2/types.h b/src/git2/types.h
index de7b9bcd3..cfc0cf379 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;