diff options
author | Brent Cook <buster@gmail.com> | 2023-03-15 17:33:08 -0600 |
---|---|---|
committer | Brent Cook <buster@gmail.com> | 2023-03-15 18:49:29 -0600 |
commit | 977be09d69a9f9b7eaf85dbd83465c0ec8361598 (patch) | |
tree | 2955551a974a3a54b4593236ae202731b0ea0a8c /patches/opensslfeatures.h.patch | |
parent | 047fddbee9f34c16a82e66ecbe1058bb8810e82f (diff) | |
download | portable-977be09d69a9f9b7eaf85dbd83465c0ec8361598.tar.gz portable-977be09d69a9f9b7eaf85dbd83465c0ec8361598.tar.bz2 portable-977be09d69a9f9b7eaf85dbd83465c0ec8361598.zip |
Fix build for MSVC
Diffstat (limited to 'patches/opensslfeatures.h.patch')
-rw-r--r-- | patches/opensslfeatures.h.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/patches/opensslfeatures.h.patch b/patches/opensslfeatures.h.patch new file mode 100644 index 0000000..8ee311d --- /dev/null +++ b/patches/opensslfeatures.h.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | --- openbsd/src/lib/libcrypto/opensslfeatures.h 2023-03-15 11:41:47.301015100 -0600 | ||
2 | +++ include/openssl/opensslfeatures.h 2023-03-15 18:27:57.740024800 -0600 | ||
3 | @@ -7,6 +7,13 @@ | ||
4 | #define LIBRESSL_HAS_TLS1_3 | ||
5 | #define LIBRESSL_HAS_DTLS1_2 | ||
6 | |||
7 | +/* | ||
8 | + * Used for compatibility with compilers lacking __attribute__ | ||
9 | + */ | ||
10 | +#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__) | ||
11 | +#define __attribute__(a) | ||
12 | +#endif | ||
13 | + | ||
14 | #define OPENSSL_THREADS | ||
15 | |||
16 | #define OPENSSL_NO_BUF_FREELISTS | ||