2
0
Эх сурвалжийг харах

Fix the build on Windows.

Pascal Quantin 14 жил өмнө
parent
commit
193b0f3e56
2 өөрчлөгдсөн 8 нэмэгдсэн , 0 устгасан
  1. 4 0
      NEWS
  2. 4 0
      dulwich/_diff_tree.c

+ 4 - 0
NEWS

@@ -1,5 +1,9 @@
 0.7.1	UNRELEASED
 0.7.1	UNRELEASED
 
 
+ BUG FIXES
+
+  * Fix the build on Windows. (Pascal Quantin)
+
 0.7.0	2011-01-21
 0.7.0	2011-01-21
 
 
  FEATURES
  FEATURES

+ 4 - 0
dulwich/_diff_tree.c

@@ -20,6 +20,10 @@
 #include <Python.h>
 #include <Python.h>
 #include <sys/stat.h>
 #include <sys/stat.h>
 
 
+#ifdef _MSC_VER
+typedef unsigned short mode_t;
+#endif
+
 #if (PY_VERSION_HEX < 0x02050000)
 #if (PY_VERSION_HEX < 0x02050000)
 typedef int Py_ssize_t;
 typedef int Py_ssize_t;
 #endif
 #endif