diff options
author | Jakob Pfender <jpfender@elegosoft.com> | 2011-05-25 16:31:14 +0200 |
---|---|---|
committer | Jakob Pfender <jpfender@elegosoft.com> | 2011-06-07 12:54:38 +0200 |
commit | cbf4f9f41f18bdb812fb854cd7fd8c4ce62ed44a (patch) | |
tree | 21271335167e0ad3fe0c8d285ac293ad16da26c3 /include/git2/common.h | |
parent | c1a2a14e022caae68112497f5e6862f9b59f1260 (diff) | |
download | libgit2-cbf4f9f41f18bdb812fb854cd7fd8c4ce62ed44a.tar.gz |
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.
Diffstat (limited to 'include/git2/common.h')
-rw-r--r-- | include/git2/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 <time.h> #include <stdlib.h> +#include <sys/stat.h> #ifdef __cplusplus # define GIT_BEGIN_DECL extern "C" { |