aboutsummaryrefslogtreecommitdiff
path: root/patches/ssl_namespace.h.patch
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2025-08-18 12:14:06 +0200
committerTheo Buehler <tb@openbsd.org>2025-08-18 12:14:35 +0200
commit8c76c282b3130f4967854686d3eaff0c15758d7c (patch)
tree8611be9e8800584ffbe872fce95bd2b14d619c25 /patches/ssl_namespace.h.patch
parentb96c2ff27fbc8495f408104520fff36bb9f37e1b (diff)
downloadportable-8c76c282b3130f4967854686d3eaff0c15758d7c.tar.gz
portable-8c76c282b3130f4967854686d3eaff0c15758d7c.tar.bz2
portable-8c76c282b3130f4967854686d3eaff0c15758d7c.zip
Improve {crypto,ssl}_namespace.h patches
This way we should be able to pull them into openbsd.
Diffstat (limited to 'patches/ssl_namespace.h.patch')
-rw-r--r--patches/ssl_namespace.h.patch22
1 files changed, 13 insertions, 9 deletions
diff --git a/patches/ssl_namespace.h.patch b/patches/ssl_namespace.h.patch
index eb9c7a2..d7b924a 100644
--- a/patches/ssl_namespace.h.patch
+++ b/patches/ssl_namespace.h.patch
@@ -1,21 +1,25 @@
1--- ssl/hidden/ssl_namespace.h.orig Fri Aug 2 23:52:55 2024 1--- ssl/hidden/ssl_namespace.h.orig Sun Aug 17 13:14:19 2025
2+++ ssl/hidden/ssl_namespace.h Fri Aug 2 23:53:17 2024 2+++ ssl/hidden/ssl_namespace.h Mon Aug 18 04:11:53 2025
3@@ -23,6 +23,11 @@ 3@@ -23,6 +23,10 @@
4 * and we alias that to the normal name. 4 * and we alias that to the normal name.
5 */ 5 */
6 6
7+#ifdef _MSC_VER 7+#ifdef _MSC_VER
8+#define LSSL_UNUSED(x) 8+#undef LIBRESSL_NAMESPACE
9+#define LSSL_USED(x) 9+#endif
10+#define LSSL_ALIAS(x) 10+
11+#else
12 #ifdef LIBRESSL_NAMESPACE 11 #ifdef LIBRESSL_NAMESPACE
13 #define LSSL_UNUSED(x) typeof(x) x __attribute__((deprecated)) 12 #define LSSL_UNUSED(x) typeof(x) x __attribute__((deprecated))
14 #define LSSL_USED(x) __attribute__((visibility("hidden"))) \ 13 #define LSSL_USED(x) __attribute__((visibility("hidden"))) \
15@@ -37,5 +42,6 @@ 14@@ -35,7 +39,11 @@
15 #else
16 #define LSSL_UNUSED(x)
16 #define LSSL_USED(x) 17 #define LSSL_USED(x)
18+#ifdef _MSC_VER
19+#define LSSL_ALIAS(x)
20+#else
17 #define LSSL_ALIAS(x) asm("") 21 #define LSSL_ALIAS(x) asm("")
18 #endif
19+#endif /* _MSC_VER */ 22+#endif /* _MSC_VER */
23 #endif
20 24
21 #endif /* _LIBSSL_SSL_NAMESPACE_H_ */ 25 #endif /* _LIBSSL_SSL_NAMESPACE_H_ */