diff options
Diffstat (limited to 'app-arch/bzip2/files/bzip2-1.0.6-mingw.patch')
-rw-r--r-- | app-arch/bzip2/files/bzip2-1.0.6-mingw.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app-arch/bzip2/files/bzip2-1.0.6-mingw.patch b/app-arch/bzip2/files/bzip2-1.0.6-mingw.patch new file mode 100644 index 000000000000..51469ca4c96e --- /dev/null +++ b/app-arch/bzip2/files/bzip2-1.0.6-mingw.patch @@ -0,0 +1,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 |