aboutsummaryrefslogtreecommitdiff
path: root/patches/opensslfeatures.h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/opensslfeatures.h.patch')
-rw-r--r--patches/opensslfeatures.h.patch16
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