[sr-dev] git:5.3:a9b4ef9e: http_async_client: fix build with older versionss of libcurl

Victor Seva linuxmaniac at torreviejawireless.org
Tue Mar 23 11:34:05 CET 2021


Module: kamailio
Branch: 5.3
Commit: a9b4ef9e6267f9f69b4f3903c71280bb31d582c3
URL: https://github.com/kamailio/kamailio/commit/a9b4ef9e6267f9f69b4f3903c71280bb31d582c3

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2021-03-23T11:33:53+01:00

http_async_client: fix build with older versionss of libcurl

* CURLPIPE_NOTHING was introduced at libcurl 7.43.0

(cherry picked from commit d82d95a824d6f8a6c0246b78ac6642d4d6fed9e1)

---

Modified: src/modules/http_async_client/http_multi.h

---

Diff:  https://github.com/kamailio/kamailio/commit/a9b4ef9e6267f9f69b4f3903c71280bb31d582c3.diff
Patch: https://github.com/kamailio/kamailio/commit/a9b4ef9e6267f9f69b4f3903c71280bb31d582c3.patch

---

diff --git a/src/modules/http_async_client/http_multi.h b/src/modules/http_async_client/http_multi.h
index 10070eb6bd..0e63811df7 100644
--- a/src/modules/http_async_client/http_multi.h
+++ b/src/modules/http_async_client/http_multi.h
@@ -48,6 +48,10 @@
 #include "hm_hash.h"
 
 
+#ifndef CURLPIPE_NOTHING
+#define CURLPIPE_NOTHING   0L
+#endif
+
 extern stat_var *requests;
 extern stat_var *replies;
 extern stat_var *errors;




More information about the sr-dev mailing list