From cbf4f9f41f18bdb812fb854cd7fd8c4ce62ed44a Mon Sep 17 00:00:00 2001 From: Jakob Pfender Date: Wed, 25 May 2011 16:31:14 +0200 Subject: [PATCH] common: Include stat.h in include/git2/common.h instead of src/common.h 00582bcb introduced a change to git_blob_create_fromfile() that required the caller to pass a stat struct. This means that we need to include stat.h higher in the hierarchy of includes. --- include/git2/common.h | 1 + src/common.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/include/git2/common.h b/include/git2/common.h index 9a27ac2e5..d08935f8c 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -28,6 +28,7 @@ #include "thread-utils.h" #include #include +#include #ifdef __cplusplus # define GIT_BEGIN_DECL extern "C" { diff --git a/src/common.h b/src/common.h index f4f11fd2f..fc444c4d4 100644 --- a/src/common.h +++ b/src/common.h @@ -22,7 +22,6 @@ #include #include -#include #ifdef GIT_WIN32