aboutsummaryrefslogtreecommitdiff
path: root/ports/bzip2
diff options
context:
space:
mode:
Diffstat (limited to 'ports/bzip2')
-rw-r--r--ports/bzip2/CONTROL2
-rw-r--r--ports/bzip2/fix-windows-include.patch12
-rw-r--r--ports/bzip2/portfile.cmake1
3 files changed, 14 insertions, 1 deletions
diff --git a/ports/bzip2/CONTROL b/ports/bzip2/CONTROL
index 5f52faad4..695925c07 100644
--- a/ports/bzip2/CONTROL
+++ b/ports/bzip2/CONTROL
@@ -1,4 +1,4 @@
Source: bzip2
-Version: 1.0.6-4
+Version: 1.0.6-5
Homepage: http://www.bzip.org/
Description: High-quality data compressor.
diff --git a/ports/bzip2/fix-windows-include.patch b/ports/bzip2/fix-windows-include.patch
new file mode 100644
index 000000000..11797ad2f
--- /dev/null
+++ b/ports/bzip2/fix-windows-include.patch
@@ -0,0 +1,12 @@
+diff -urN bzip2-1.0.6-orig/bzip2.c bzip2-1.0.6/bzip2.c
+--- bzip2-1.0.6-orig/bzip2.c 2010-09-11 02:04:53.000000000 +0300
++++ bzip2-1.0.6/bzip2.c 2019-11-04 11:40:52.230652175 +0200
+@@ -128,7 +128,7 @@
+ #if BZ_LCCWIN32
+ # include <io.h>
+ # include <fcntl.h>
+-# include <sys\stat.h>
++# include <sys/stat.h>
+
+ # define NORETURN /**/
+ # define PATH_SEP '\\'
diff --git a/ports/bzip2/portfile.cmake b/ports/bzip2/portfile.cmake
index 25e3df10f..0462d53eb 100644
--- a/ports/bzip2/portfile.cmake
+++ b/ports/bzip2/portfile.cmake
@@ -11,6 +11,7 @@ vcpkg_extract_source_archive_ex(
REF ${BZIP2_VERSION}
PATCHES
fix-import-export-macros.patch
+ fix-windows-include.patch
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})