File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ diff --git a/src/mk-file-embed.pl b/src/mk-file-embed.pl
2
+ index 3447aa9472b717..e4dbe35de1acdc 100755
3
+ --- a/src/mk-file-embed.pl
4
+ +++ b/src/mk-file-embed.pl
5
+ @@ -29,11 +29,16 @@
6
+ $varname = shift @ARGV;
7
+ }
8
+
9
+ + my $varname_upper = uc($varname);
10
+ +
11
+ print <<HEAD
12
+ /*
13
+ * NEVER EVER edit this manually, fix the mk-file-embed.pl script instead!
14
+ */
15
+ + #ifndef CURL_DECLARED_${varname_upper}
16
+ + #define CURL_DECLARED_${varname_upper}
17
+ extern const unsigned char ${varname}[];
18
+ + #endif
19
+ const unsigned char ${varname}[] = {
20
+ HEAD
21
+ ;
22
+ diff --git a/src/tool_operate.c b/src/tool_operate.c
23
+ index ed5ab4d6c86c57..5aadf26d23f6e9 100644
24
+ --- a/src/tool_operate.c
25
+ +++ b/src/tool_operate.c
26
+ @@ -105,8 +105,11 @@ CURL_EXTERN CURLcode curl_easy_perform_ev(CURL *easy);
27
+ #include "memdebug.h" /* keep this as LAST include */
28
+
29
+ #ifdef CURL_CA_EMBED
30
+ + #ifndef CURL_DECLARED_CURL_CA_EMBED
31
+ + #define CURL_DECLARED_CURL_CA_EMBED
32
+ extern const unsigned char curl_ca_embed[];
33
+ #endif
34
+ + #endif
35
+
36
+ #ifndef O_BINARY
37
+ /* since O_BINARY as used in bitmasks, setting it to zero makes it usable in
You can’t perform that action at this time.
0 commit comments