diff options
Diffstat (limited to 'patches')
-rw-r--r-- | patches/opensslconf.h.patch | 24 | ||||
-rw-r--r-- | patches/windows_headers.patch | 13 |
2 files changed, 24 insertions, 13 deletions
diff --git a/patches/opensslconf.h.patch b/patches/opensslconf.h.patch new file mode 100644 index 0000000..e060a20 --- /dev/null +++ b/patches/opensslconf.h.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | --- include/openssl/opensslconf.h.orig Tue Nov 22 21:08:27 2022 | ||
2 | +++ include/openssl/opensslconf.h Wed Nov 23 12:38:07 2022 | ||
3 | @@ -1,6 +1,21 @@ | ||
4 | #include <openssl/opensslfeatures.h> | ||
5 | /* crypto/opensslconf.h.in */ | ||
6 | |||
7 | +#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__) | ||
8 | +#define __attribute__(a) | ||
9 | +#endif | ||
10 | + | ||
11 | +#ifndef LIBRESSL_NAMESPACE | ||
12 | +# define LCRYPTO_UNUSED(x) | ||
13 | +# define LCRYPTO_USED(x) | ||
14 | +# define LCRYPTO_ALIAS1(pre, x) | ||
15 | +# define LCRYPTO_ALIAS(x) | ||
16 | + | ||
17 | +# define LSSL_UNUSED(x) | ||
18 | +# define LSSL_USED(x) | ||
19 | +# define LSSL_ALIAS(x) | ||
20 | +#endif /* !LIBRESSL_NAMESPACE */ | ||
21 | + | ||
22 | #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR) | ||
23 | #define OPENSSLDIR "/etc/ssl" | ||
24 | #endif | ||
diff --git a/patches/windows_headers.patch b/patches/windows_headers.patch index 0e9428c..17c447d 100644 --- a/patches/windows_headers.patch +++ b/patches/windows_headers.patch | |||
@@ -13,19 +13,6 @@ diff -u include/openssl.orig/dtls1.h include/openssl/dtls1.h | |||
13 | 13 | ||
14 | #include <stdio.h> | 14 | #include <stdio.h> |
15 | #include <stdlib.h> | 15 | #include <stdlib.h> |
16 | --- include/openssl/opensslconf.h.orig Sat Nov 5 08:36:25 2016 | ||
17 | +++ include/openssl/opensslconf.h Mon Jul 17 06:06:58 2017 | ||
18 | @@ -1,6 +1,10 @@ | ||
19 | #include <openssl/opensslfeatures.h> | ||
20 | /* crypto/opensslconf.h.in */ | ||
21 | |||
22 | +#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__) | ||
23 | +#define __attribute__(a) | ||
24 | +#endif | ||
25 | + | ||
26 | #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR) | ||
27 | #define OPENSSLDIR "/etc/ssl" | ||
28 | #endif | ||
29 | --- include/openssl/ossl_typ.h.orig Fri Feb 18 16:30:39 2022 | 16 | --- include/openssl/ossl_typ.h.orig Fri Feb 18 16:30:39 2022 |
30 | +++ include/openssl/ossl_typ.h Mon Feb 21 05:39:35 2022 | 17 | +++ include/openssl/ossl_typ.h Mon Feb 21 05:39:35 2022 |
31 | @@ -82,6 +82,22 @@ | 18 | @@ -82,6 +82,22 @@ |