forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openlierox-0.58_rc1-curl.patch
72 lines (65 loc) · 2.48 KB
/
openlierox-0.58_rc1-curl.patch
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
diff --git a/include/HTTP.h b/include/HTTP.h
index 6be27f9..916193b 100644
--- a/include/HTTP.h
+++ b/include/HTTP.h
@@ -21,7 +21,12 @@
#include <string>
#include <curl/curl.h>
-#include <curl/types.h>
+#if ! defined(LIBCURL_VERSION_PATCH) \
+ || (LIBCURL_VERSION_MAJOR < 7) \
+ || ((LIBCURL_VERSION_MAJOR == 7) && (LIBCURL_VERSION_MINOR < 21)) \
+ || ((LIBCURL_VERSION_MAJOR == 7) && (LIBCURL_VERSION_MINOR == 21) && (LIBCURL_VERSION_PATCH < 7))
+# include <curl/types.h>
+#endif
#include <curl/easy.h>
#include "Networking.h"
diff --git a/src/breakpad/external/src/common/linux/http_upload.cc b/src/breakpad/external/src/common/linux/http_upload.cc
index 8748d11..c079aef 100644
--- a/src/breakpad/external/src/common/linux/http_upload.cc
+++ b/src/breakpad/external/src/common/linux/http_upload.cc
@@ -31,7 +31,12 @@
#include <dlfcn.h>
#include <curl/curl.h>
#include <curl/easy.h>
-#include <curl/types.h>
+#if ! defined(LIBCURL_VERSION_PATCH) \
+ || (LIBCURL_VERSION_MAJOR < 7) \
+ || ((LIBCURL_VERSION_MAJOR == 7) && (LIBCURL_VERSION_MINOR < 21)) \
+ || ((LIBCURL_VERSION_MAJOR == 7) && (LIBCURL_VERSION_MINOR == 21) && (LIBCURL_VERSION_PATCH < 7))
+# include <curl/types.h>
+#endif
#include "common/linux/http_upload.h"
diff --git a/src/breakpad/external/src/common/linux/libcurl_wrapper.cc b/src/breakpad/external/src/common/linux/libcurl_wrapper.cc
index 5bea3af..1fa6d24 100644
--- a/src/breakpad/external/src/common/linux/libcurl_wrapper.cc
+++ b/src/breakpad/external/src/common/linux/libcurl_wrapper.cc
@@ -29,7 +29,12 @@
#include <curl/curl.h>
#include <curl/easy.h>
-#include <curl/types.h>
+#if ! defined(LIBCURL_VERSION_PATCH) \
+ || (LIBCURL_VERSION_MAJOR < 7) \
+ || ((LIBCURL_VERSION_MAJOR == 7) && (LIBCURL_VERSION_MINOR < 21)) \
+ || ((LIBCURL_VERSION_MAJOR == 7) && (LIBCURL_VERSION_MINOR == 21) && (LIBCURL_VERSION_PATCH < 7))
+# include <curl/types.h>
+#endif
#include <dlfcn.h>
#include <string>
diff --git a/src/common/HTTP.cpp b/src/common/HTTP.cpp
index 0782f9c..7f7a852 100644
--- a/src/common/HTTP.cpp
+++ b/src/common/HTTP.cpp
@@ -25,7 +25,12 @@
#include <stdlib.h>
#endif
#include <curl/curl.h>
-#include <curl/types.h>
+#if ! defined(LIBCURL_VERSION_PATCH) \
+ || (LIBCURL_VERSION_MAJOR < 7) \
+ || ((LIBCURL_VERSION_MAJOR == 7) && (LIBCURL_VERSION_MINOR < 21)) \
+ || ((LIBCURL_VERSION_MAJOR == 7) && (LIBCURL_VERSION_MINOR == 21) && (LIBCURL_VERSION_PATCH < 7))
+# include <curl/types.h>
+#endif
#include <curl/easy.h>
#include "LieroX.h"