aboutsummaryrefslogtreecommitdiff
path: root/www/ungoogled-chromium/files/patch-base_compiler__specific.h
blob: 95071ee1c4c9f9c3f8f4572d9c5b2c85dc07d424 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- base/compiler_specific.h.orig	2024-02-25 20:22:18 UTC
+++ base/compiler_specific.h
@@ -316,7 +316,7 @@
 //
 // In some cases it's desirable to remove this, e.g. on hot functions, or if
 // we have purposely changed the reference canary.
-#if defined(COMPILER_GCC) || defined(__clang__)
+#if (defined(COMPILER_GCC) || defined(__clang__)) && !defined(__OpenBSD__) && !defined(__FreeBSD__)
 #if HAS_ATTRIBUTE(__no_stack_protector__)
 #define NO_STACK_PROTECTOR __attribute__((__no_stack_protector__))
 #else