diff options
Diffstat (limited to 'patches/ssl_namespace.h.patch')
-rw-r--r-- | patches/ssl_namespace.h.patch | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/patches/ssl_namespace.h.patch b/patches/ssl_namespace.h.patch index 649e862..758f8dc 100644 --- a/patches/ssl_namespace.h.patch +++ b/patches/ssl_namespace.h.patch | |||
@@ -1,13 +1,21 @@ | |||
1 | --- ssl/hidden/ssl_namespace.h.orig 2023-02-28 00:42:20.928756042 -0600 | 1 | --- openbsd/src/lib/libssl/hidden/ssl_namespace.h 2023-03-15 11:41:52.481641800 -0600 |
2 | +++ ssl/hidden/ssl_namespace.h 2023-02-28 00:43:16.372755180 -0600 | 2 | +++ ssl/hidden/ssl_namespace.h 2023-03-15 17:28:04.685309300 -0600 |
3 | @@ -18,6 +18,10 @@ | 3 | @@ -23,6 +23,11 @@ |
4 | #ifndef _LIBSSL_SSL_NAMESPACE_H_ | ||
5 | #define _LIBSSL_SSL_NAMESPACE_H_ | ||
6 | |||
7 | +#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__) | ||
8 | +#define __attribute__(a) | ||
9 | +#endif | ||
10 | + | ||
11 | /* | ||
12 | * If marked as 'used', then internal calls use the name with prefix "_lssl_" | ||
13 | * and we alias that to the normal name. | 4 | * and we alias that to the normal name. |
5 | */ | ||
6 | |||
7 | +#ifdef _MSC_VER | ||
8 | +#define LSSL_UNUSED(x) | ||
9 | +#define LSSL_USED(x) | ||
10 | +#define LSSL_ALIAS(x) | ||
11 | +#else | ||
12 | #ifdef LIBRESSL_NAMESPACE | ||
13 | #define LSSL_UNUSED(x) typeof(x) x __attribute__((deprecated)) | ||
14 | #define LSSL_USED(x) __attribute__((visibility("hidden"))) \ | ||
15 | @@ -33,5 +38,6 @@ | ||
16 | #define LSSL_USED(x) | ||
17 | #define LSSL_ALIAS(x) asm("") | ||
18 | #endif | ||
19 | +#endif /* _MSC_VER */ | ||
20 | |||
21 | #endif /* _LIBSSL_SSL_NAMESPACE_H_ */ | ||