summaryrefslogtreecommitdiff
blob: 51469ca4c96ece3bda88e035db8d100c1eda8f65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
make it build for mingw targets

https://bugs.gentoo.org/393573

--- a/bzip2.c
+++ b/bzip2.c
@@ -129,7 +129,7 @@
 #if BZ_LCCWIN32
 #   include <io.h>
 #   include <fcntl.h>
-#   include <sys\stat.h>
+#   include <sys/stat.h>
 
 #   define NORETURN       /**/
 #   define PATH_SEP       '\\'
--- a/bzlib.h
+++ b/bzlib.h
@@ -81,6 +81,9 @@ typedef
       /* windows.h define small to char */
 #      undef small
 #   endif
+#   ifndef WINAPI
+#   define WINAPI
+#   endif
 #   ifdef BZ_EXPORT
 #   define BZ_API(func) WINAPI func
 #   define BZ_EXTERN extern