Browse code

mi_rpc: compatibility with libxmlrpc-c3 library on wheezy

- patch by Muhammad Shahzad

(cherry picked from commit baa4fccc2870df102a66089d6e9b6ca1ff47fc25)

Daniel-Constantin Mierla authored on 26/09/2013 10:59:59
Showing 3 changed files
... ...
@@ -3,6 +3,23 @@
3 3
 
4 4
 #include "abyss_thread.h"
5 5
 
6
+#ifndef XMLRPC_OLD_VERSION
7
+#define MAX_CONN        16
8
+typedef struct
9
+{
10
+	void *data;
11
+	int size;
12
+	int staticid;
13
+} TBuffer;
14
+
15
+typedef struct
16
+{
17
+	TBuffer buffer;
18
+	int size;
19
+} TString;
20
+
21
+#endif
22
+
6 23
 /*********************************************************************
7 24
 ** List
8 25
 *********************************************************************/
... ...
@@ -544,12 +544,12 @@ RequestRead(TSession * const sessionP) {
544 544
 }
545 545
 
546 546
 
547
-
547
+#ifdef XMLRPC_OLD_VERSION
548 548
 char *RequestHeaderValue(TSession *r,char *name)
549 549
 {
550 550
     return (TableFind(&r->request_headers,name));
551 551
 }
552
-
552
+#endif
553 553
 
554 554
 
555 555
 abyss_bool
... ...
@@ -941,8 +941,9 @@ uriPathParm(const xmlrpc_server_abyss_parms * const parmsP,
941 941
 }
942 942
 
943 943
 
944
-
944
+#ifdef XMLRPC_OLD_VERSION
945 945
 static xmlrpc_server_shutdown_fn shutdownAbyss;
946
+#endif
946 947
 
947 948
 static void
948 949
 shutdownAbyss(xmlrpc_env * const envP,