diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2023-02-23 02:51:04 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2023-02-23 02:51:04 +0530 |
commit | 757dc6b2eb21b4fb91355031e39c78087ebb5dc6 (patch) | |
tree | 00886c89909a309992ade5b0999e59ed09bc72ee /recipes/orc | |
parent | 7c97b5c06c413d18d63d64ef49f4fb45e8f71f28 (diff) |
orc.recipe: Update pthread_jit_write_protect fix
The original fix was incorrect, see
https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/89
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1116>
Diffstat (limited to 'recipes/orc')
-rw-r--r-- | recipes/orc/0001-Fix-guard-around-usage-of-pthread_jit_write_protect.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes/orc/0001-Fix-guard-around-usage-of-pthread_jit_write_protect.patch b/recipes/orc/0001-Fix-guard-around-usage-of-pthread_jit_write_protect.patch new file mode 100644 index 00000000..94a9f3f7 --- /dev/null +++ b/recipes/orc/0001-Fix-guard-around-usage-of-pthread_jit_write_protect.patch @@ -0,0 +1,28 @@ +From 1be4d0443148096000c5171c0f6d0e4dc4668fd1 Mon Sep 17 00:00:00 2001 +From: Nirbheek Chauhan <nirbheek@centricular.com> +Date: Thu, 23 Feb 2023 02:44:20 +0530 +Subject: [PATCH] Fix guard around usage of pthread_jit_write_protect* + +The guard should be macOS 11.0, not 10.11. We got no compiler warning +for this because `-Wunguarded-availability-new` only checks that you +have a guard. It can't check whether the guard is correct. +--- + orc/orccompiler.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/orc/orccompiler.c b/orc/orccompiler.c +index 19bec9e..00a8b6f 100644 +--- a/orc/orccompiler.c ++++ b/orc/orccompiler.c +@@ -69,7 +69,7 @@ G_ALWAYS_INLINE + static void + orc_pthread_jit_write_protect_np (int protect) + { +- if (__builtin_available (macOS 10.11, *)) ++ if (__builtin_available (macOS 11.0, *)) + if (pthread_jit_write_protect_supported_np ()) + pthread_jit_write_protect_np (protect); + } +-- +2.39.2 + |