aboutsummaryrefslogtreecommitdiff
path: root/ports/openssl-unix/STRINGIFYPatch.patch
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-07-17 16:07:52 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-07-17 16:09:12 -0700
commitb4422a1b7ec3c0728108972c07f4daeaa2c9b2a8 (patch)
treee65ae338893770d97bf6fb2c8230cd47c3cf2cd1 /ports/openssl-unix/STRINGIFYPatch.patch
parentc2f96eb79ac11be000b7b26134ff89946bfa6458 (diff)
downloadvcpkg-b4422a1b7ec3c0728108972c07f4daeaa2c9b2a8.tar.gz
vcpkg-b4422a1b7ec3c0728108972c07f4daeaa2c9b2a8.zip
[openssl] Split openssl into multiple ports per platform
Diffstat (limited to 'ports/openssl-unix/STRINGIFYPatch.patch')
-rw-r--r--ports/openssl-unix/STRINGIFYPatch.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/ports/openssl-unix/STRINGIFYPatch.patch b/ports/openssl-unix/STRINGIFYPatch.patch
new file mode 100644
index 000000000..dd8f9c297
--- /dev/null
+++ b/ports/openssl-unix/STRINGIFYPatch.patch
@@ -0,0 +1,23 @@
+diff --git a/crypto/cversion.c b/crypto/cversion.c
+index bfff699..17b7912 100644
+--- a/crypto/cversion.c
++++ b/crypto/cversion.c
+@@ -56,6 +56,9 @@
+ * [including the GNU Public Licence.]
+ */
+
++#define STRINGIFY2(x) #x
++#define STRINGIFY(x) STRINGIFY2(x)
++
+ #include "cryptlib.h"
+
+ #ifndef NO_WINDOWS_BRAINDEATH
+@@ -79,7 +82,7 @@ const char *SSLeay_version(int t)
+ }
+ if (t == SSLEAY_CFLAGS) {
+ #ifdef CFLAGS
+- return (CFLAGS);
++ return STRINGIFY(CFLAGS);
+ #else
+ return ("compiler: information not available");
+ #endif