summaryrefslogtreecommitdiffstats
path: root/src/xmlrpc-c-1-fixes.patch
diff options
context:
space:
mode:
authorLars Silvén <lars@primekey.se>2014-02-05 13:25:30 (GMT)
committerTony Theodore <tonyt@logyst.com>2014-03-01 14:09:54 (GMT)
commitc8a6c3deded61bb6041c9fa443aa2b5e832b00c9 (patch)
tree8f143edf055bc365458381d68807fd9bb5daa369 /src/xmlrpc-c-1-fixes.patch
parent4a4c01b75cbd29acd44f01120258429f328bbfd8 (diff)
downloadmxe-c8a6c3deded61bb6041c9fa443aa2b5e832b00c9.zip
mxe-c8a6c3deded61bb6041c9fa443aa2b5e832b00c9.tar.gz
mxe-c8a6c3deded61bb6041c9fa443aa2b5e832b00c9.tar.bz2
package xmlrpc-c added.
Diffstat (limited to 'src/xmlrpc-c-1-fixes.patch')
-rw-r--r--src/xmlrpc-c-1-fixes.patch109
1 files changed, 109 insertions, 0 deletions
diff --git a/src/xmlrpc-c-1-fixes.patch b/src/xmlrpc-c-1-fixes.patch
new file mode 100644
index 0000000..f0f9efe
--- /dev/null
+++ b/src/xmlrpc-c-1-fixes.patch
@@ -0,0 +1,109 @@
+This file is part of MXE.
+See index.html for further information.
+
+Index: stable/lib/curl_transport/curltransaction.c
+===================================================================
+--- stable/lib/curl_transport/curltransaction.c (revision 2571)
++++ stable/lib/curl_transport/curltransaction.c (working copy)
+@@ -2,8 +2,6 @@
+ curlTransaction
+ =============================================================================*/
+
+-#define _XOPEN_SOURCE 600 /* Make sure strdup() is in <string.h> */
+-
+ #include <assert.h>
+ #include <string.h>
+ #include <stdlib.h>
+Index: stable/lib/expat/xmlparse/xmlparse.c
+===================================================================
+--- stable/lib/expat/xmlparse/xmlparse.c (revision 2571)
++++ stable/lib/expat/xmlparse/xmlparse.c (working copy)
+@@ -4547,14 +4547,6 @@
+
+
+ int
+-XML_SetHashSalt(XML_Parser parser,
+- unsigned long hash_salt)
+-{
+- hash_secret_salt = hash_salt;
+- return 1;
+-}
+-
+-int
+ xmlrpc_XML_Parse(XML_Parser const xmlParserP,
+ const char * const s,
+ size_t const len,
+Index: stable/lib/expat/xmlparse/xmlparse.h
+===================================================================
+--- stable/lib/expat/xmlparse/xmlparse.h (revision 2571)
++++ stable/lib/expat/xmlparse/xmlparse.h (working copy)
+@@ -491,8 +491,6 @@
+ function behavior. This must be called before parsing is started.
+ Returns 1 if successful, 0 when called after parsing has started.
+ */
+-int
+-XML_SetHashSalt(XML_Parser parser, unsigned long hash_salt);
+
+ enum XML_Error {
+ XML_ERROR_NONE,
+Index: stable/src/cpp/packetsocket.cpp
+===================================================================
+--- stable/src/cpp/packetsocket.cpp (revision 2571)
++++ stable/src/cpp/packetsocket.cpp (working copy)
+@@ -45,7 +45,7 @@
+ example, an unplugged TCP/IP network cable. It's probably better
+ to use the TCP keepalive facility for that.
+ ============================================================================*/
+-#include "xmlrpc_config.h"
++#define MSVCRT 1
+
+ #include <cassert>
+ #include <string>
+Index: stable/src/cpp/server_abyss.cpp
+===================================================================
+--- stable/src/cpp/server_abyss.cpp (revision 2571)
++++ stable/src/cpp/server_abyss.cpp (working copy)
+@@ -1,4 +1,4 @@
+-#include "xmlrpc_config.h"
++#define MSVCRT 1
+ #define WIN32_LEAN_AND_MEAN /* required by xmlrpc-c/abyss.h */
+ #include <cstdlib>
+ #include <string>
+Index: stable/src/cpp/server_cgi.cpp
+===================================================================
+--- stable/src/cpp/server_cgi.cpp (revision 2571)
++++ stable/src/cpp/server_cgi.cpp (working copy)
+@@ -12,7 +12,7 @@
+ Contributed to the public domain by its author.
+ =============================================================================*/
+
+-#include "xmlrpc_config.h"
++#define MSVCRT 1
+ #if MSVCRT
+ #ifndef _CRT_SECURE_NO_WARNINGS
+ #define _CRT_SECURE_NO_WARNINGS
+Index: stable/src/cpp/server_pstream.cpp
+===================================================================
+--- stable/src/cpp/server_pstream.cpp (revision 2571)
++++ stable/src/cpp/server_pstream.cpp (working copy)
+@@ -14,7 +14,7 @@
+ Contributed to the public domain by its author.
+ =============================================================================*/
+
+-#include "xmlrpc_config.h"
++#define MSVCRT 1
+ #if MSVCRT
+ #ifndef _CRT_SECURE_NO_WARNINGS
+ #define _CRT_SECURE_NO_WARNINGS
+Index: stable/src/xmlrpc_datetime.c
+===================================================================
+--- stable/src/xmlrpc_datetime.c (revision 2571)
++++ stable/src/xmlrpc_datetime.c (working copy)
+@@ -1,7 +1,5 @@
+ #include "xmlrpc_config.h"
+
+-#define _XOPEN_SOURCE 600 /* Make sure strdup() is in <string.h> */
+-
+ #include <time.h>
+ #include <stdlib.h>
+ #include <string.h>