summaryrefslogtreecommitdiffstats
path: root/src/xmlrpc-c-1-fixes.patch
blob: 30a75e4c0922352d640f123b18da7173cfa4754a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
This file is part of MXE. See LICENSE.md for licensing 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>