Commit cbf4f9f4 by Jakob Pfender

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.
parent c1a2a14e
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include "thread-utils.h" #include "thread-utils.h"
#include <time.h> #include <time.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h>
#ifdef __cplusplus #ifdef __cplusplus
# define GIT_BEGIN_DECL extern "C" { # define GIT_BEGIN_DECL extern "C" {
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#ifdef GIT_WIN32 #ifdef GIT_WIN32
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment