aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Sywula <krzysztof.m.sywula@intel.com>2013-09-19 17:31:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-20 11:17:14 +0100
commitb9413175680cc8afc87d6ed00bcf77ec2f2b8e97 (patch)
tree22a8762320201caa39deff3aabbd7a1c306d16e8
parent477935d26a9476e9ad18ffd61d1827517210fb11 (diff)
downloadmeta-mingw-b9413175680cc8afc87d6ed00bcf77ec2f2b8e97.tar.gz
meta-mingw-b9413175680cc8afc87d6ed00bcf77ec2f2b8e97.tar.bz2
meta-mingw-b9413175680cc8afc87d6ed00bcf77ec2f2b8e97.zip
expand: Add bbappend to avoid filemap mingw32 issues
Originally created by Richard Purdie Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--recipes-core/expat/expat/disable_mmap.patch13
-rw-r--r--recipes-core/expat/expat_2.1.0.bbappend4
2 files changed, 17 insertions, 0 deletions
diff --git a/recipes-core/expat/expat/disable_mmap.patch b/recipes-core/expat/expat/disable_mmap.patch
new file mode 100644
index 0000000..95932c6
--- /dev/null
+++ b/recipes-core/expat/expat/disable_mmap.patch
@@ -0,0 +1,13 @@
+diff --git a/configure.in b/configure.in
+index 7e968c4..7d442f2 100644
+--- a/configure.in
++++ b/configure.in
+@@ -99,7 +99,7 @@ AC_TYPE_OFF_T
+ AC_FUNC_MMAP
+
+ if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
+- FILEMAP=unixfilemap
++ FILEMAP=readfilemap
+ else
+ FILEMAP=readfilemap
+ fi
diff --git a/recipes-core/expat/expat_2.1.0.bbappend b/recipes-core/expat/expat_2.1.0.bbappend
new file mode 100644
index 0000000..4bc3086
--- /dev/null
+++ b/recipes-core/expat/expat_2.1.0.bbappend
@@ -0,0 +1,4 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+#Dirty hack not to use sys/mmap.h under mingw which doesn't exist
+SRC_URI_append_mingw32 = " file://disable_mmap.patch"