Update cygwin.c for new mingw-64 win32 api headers
[gitweb.git] / compat / cygwin.c
index dfe9b3084ffbfd6c41a648e32a1857e78b566215..59d86e4d1518dcccfe70b594015b5882ff82cc09 100644 (file)
@@ -1,6 +1,13 @@
 #define WIN32_LEAN_AND_MEAN
+#ifdef V15_MINGW_HEADERS
 #include "../git-compat-util.h"
 #include "win32.h"
+#else
+#include <sys/stat.h>
+#include <sys/errno.h>
+#include "win32.h"
+#include "../git-compat-util.h"
+#endif
 #include "../cache.h" /* to read configuration */
 
 static inline void filetime_to_timespec(const FILETIME *ft, struct timespec *ts)