summaryrefslogtreecommitdiff
path: root/recipes/bzip2
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-12-14 14:33:08 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-12-14 14:33:08 +0530
commite60da4d60ab248fd7db615b235e14c9bef40b4a4 (patch)
treebec8460911fe6cc631380212718123d70c1571ed /recipes/bzip2
parent326cff90a3a0197a1ddb5327e2bad7c04bb29eab (diff)
bzip2.recipe: Re-add patch that was accidentally dropped
This fixes a build failure on MinGW.
Diffstat (limited to 'recipes/bzip2')
-rw-r--r--recipes/bzip2/add-meson-build-files.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes/bzip2/add-meson-build-files.patch b/recipes/bzip2/add-meson-build-files.patch
index a6d46916..45e3475f 100644
--- a/recipes/bzip2/add-meson-build-files.patch
+++ b/recipes/bzip2/add-meson-build-files.patch
@@ -425,3 +425,30 @@ index 2dc0dd8..6e4ddf6 100644
--
2.19.1
+From 9984c2128e15d309a85922599d54366387265c57 Mon Sep 17 00:00:00 2001
+From: Nirbheek Chauhan <nirbheek@centricular.com>
+Date: Fri, 14 Dec 2018 14:29:38 +0530
+Subject: [PATCH] Don't use \ in #include lines
+
+Causes a build failure with MinGW, and is also against the convention
+around path separators in #include lines.
+---
+ bzip2.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/bzip2.c b/bzip2.c
+index 6de9d1d..dc626a4 100644
+--- a/bzip2.c
++++ b/bzip2.c
+@@ -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 '\\'
+--
+2.19.1
+