summaryrefslogtreecommitdiffstats
path: root/meta/packages/libxml/libxml2
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/libxml/libxml2')
-rw-r--r--meta/packages/libxml/libxml2/libxml-64bit.patch20
-rw-r--r--meta/packages/libxml/libxml2/libxml-nanohttp.patch13
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/packages/libxml/libxml2/libxml-64bit.patch b/meta/packages/libxml/libxml2/libxml-64bit.patch
new file mode 100644
index 0000000000..fcb7d34fa7
--- /dev/null
+++ b/meta/packages/libxml/libxml2/libxml-64bit.patch
@@ -0,0 +1,20 @@
1---
2 libxml.h | 3 +++
3 1 file changed, 3 insertions(+)
4
5--- libxml2-2.6.29.orig/libxml.h
6+++ libxml2-2.6.29/libxml.h
7@@ -11,10 +11,13 @@
8
9 #ifndef NO_LARGEFILE_SOURCE
10 #ifndef _LARGEFILE_SOURCE
11 #define _LARGEFILE_SOURCE
12 #endif
13+#ifndef _LARGEFILE64_SOURCE
14+#define _LARGEFILE64_SOURCE
15+#endif
16 #ifndef _FILE_OFFSET_BITS
17 #define _FILE_OFFSET_BITS 64
18 #endif
19 #endif
20
diff --git a/meta/packages/libxml/libxml2/libxml-nanohttp.patch b/meta/packages/libxml/libxml2/libxml-nanohttp.patch
new file mode 100644
index 0000000000..550e036db3
--- /dev/null
+++ b/meta/packages/libxml/libxml2/libxml-nanohttp.patch
@@ -0,0 +1,13 @@
1Index: libxml2-2.6.29/nanohttp.c
2===================================================================
3--- libxml2-2.6.29.orig/nanohttp.c 2008-10-30 10:12:11.000000000 +0800
4+++ libxml2-2.6.29/nanohttp.c 2008-10-30 10:12:30.000000000 +0800
5@@ -1585,7 +1585,7 @@
6 if (!strcmp(filename, "-"))
7 fd = 0;
8 else {
9- fd = open(filename, O_CREAT | O_WRONLY);
10+ fd = open(filename, O_CREAT | O_WRONLY, 0644);
11 if (fd < 0) {
12 xmlNanoHTTPClose(ctxt);
13 return(-1);