Skip to content

Commit 53444ad

Browse files
committed
test 15307 patch 2
1 parent bc30ccc commit 53444ad

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

curl.test.patch

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

0 commit comments

Comments
 (0)