aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-third__party_boringssl_src_crypto_refcount__c11.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-third__party_boringssl_src_crypto_refcount__c11.c')
-rw-r--r--devel/electron13/files/patch-third__party_boringssl_src_crypto_refcount__c11.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-third__party_boringssl_src_crypto_refcount__c11.c b/devel/electron13/files/patch-third__party_boringssl_src_crypto_refcount__c11.c
new file mode 100644
index 000000000000..74e76a135d85
--- /dev/null
+++ b/devel/electron13/files/patch-third__party_boringssl_src_crypto_refcount__c11.c
@@ -0,0 +1,13 @@
+--- third_party/boringssl/src/crypto/refcount_c11.c.orig 2021-07-15 19:15:42 UTC
++++ third_party/boringssl/src/crypto/refcount_c11.c
+@@ -24,6 +24,10 @@
+
+ #include <openssl/type_check.h>
+
++#if !defined(__cplusplus) && !defined(static_assert)
++#define static_assert _Static_assert
++#endif
++
+
+ // See comment above the typedef of CRYPTO_refcount_t about these tests.
+ static_assert(alignof(CRYPTO_refcount_t) == alignof(_Atomic CRYPTO_refcount_t),