aboutsummaryrefslogtreecommitdiff
path: root/sysutils/freebsd-rustdate/files/patch-vendor_openssl_crypto_threads__pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/freebsd-rustdate/files/patch-vendor_openssl_crypto_threads__pthread.c')
-rw-r--r--sysutils/freebsd-rustdate/files/patch-vendor_openssl_crypto_threads__pthread.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sysutils/freebsd-rustdate/files/patch-vendor_openssl_crypto_threads__pthread.c b/sysutils/freebsd-rustdate/files/patch-vendor_openssl_crypto_threads__pthread.c
new file mode 100644
index 000000000000..6ae32190c860
--- /dev/null
+++ b/sysutils/freebsd-rustdate/files/patch-vendor_openssl_crypto_threads__pthread.c
@@ -0,0 +1,15 @@
+Taken from /usr/ports/security/openssl34/files/patch-crypto_threads__pthread.c
+
+--- cargo-crates/openssl-src-300.5.0+3.5.0/openssl/crypto/threads_pthread.c.orig 2025-05-09 22:37:37 UTC
++++ cargo-crates/openssl-src-300.5.0+3.5.0/openssl/crypto/threads_pthread.c
+@@ -50,6 +50,10 @@ __tsan_mutex_post_lock((x), 0, 0)
+ # define BROKEN_CLANG_ATOMICS
+ #endif
+
++#if defined(__FreeBSD__) && (defined(__i386__) || defined(__powerpc__))
++#define BROKEN_CLANG_ATOMICS
++#endif
++
+ #if defined(OPENSSL_THREADS) && !defined(CRYPTO_TDEBUG) && !defined(OPENSSL_SYS_WINDOWS)
+
+ # if defined(OPENSSL_SYS_UNIX)