Commit ee4912bf795237cb235b3d6533e9046fcd7e12b7

Jakob Pfender 2011-06-07T11:15:23

Revert "common: Include stat.h in include/git2/common.h instead of src/common.h" This reverts commit df1c98ab6d6171ed63729195bd190b54b67fe530. As 8a27b6b reverts the exposition of struct stat to the external API, we do not need - indeed, do not want - struct stat to be in the outer include layer.

diff --git a/include/git2/common.h b/include/git2/common.h
index d08935f..9a27ac2 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -28,7 +28,6 @@
 #include "thread-utils.h"
 #include <time.h>
 #include <stdlib.h>
-#include <sys/stat.h>
 
 #ifdef __cplusplus
 # define GIT_BEGIN_DECL  extern "C" {
diff --git a/src/common.h b/src/common.h
index fc444c4..f4f11fd 100644
--- a/src/common.h
+++ b/src/common.h
@@ -22,6 +22,7 @@
 #include <string.h>
 
 #include <sys/types.h>
+#include <sys/stat.h>
 
 #ifdef GIT_WIN32