Fix build for MSVC
This commit is contained in:
16
patches/opensslfeatures.h.patch
Normal file
16
patches/opensslfeatures.h.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
--- openbsd/src/lib/libcrypto/opensslfeatures.h 2023-03-15 11:41:47.301015100 -0600
|
||||
+++ include/openssl/opensslfeatures.h 2023-03-15 18:27:57.740024800 -0600
|
||||
@@ -7,6 +7,13 @@
|
||||
#define LIBRESSL_HAS_TLS1_3
|
||||
#define LIBRESSL_HAS_DTLS1_2
|
||||
|
||||
+/*
|
||||
+ * Used for compatibility with compilers lacking __attribute__
|
||||
+ */
|
||||
+#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__)
|
||||
+#define __attribute__(a)
|
||||
+#endif
|
||||
+
|
||||
#define OPENSSL_THREADS
|
||||
|
||||
#define OPENSSL_NO_BUF_FREELISTS
|
Reference in New Issue
Block a user