diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-02-08 18:01:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-08 18:01:31 +0000 |
commit | 3688b764d005fc32dc4944f306cffb80c1d238b1 (patch) | |
tree | 00c03fad6f2e9d83439d3a5503b91bc7eda2608f /pkgs/development/compilers/sbcl/fix-2.4.0-aarch64-darwin.patch | |
parent | b7cf3752c9c532e38cff83647fa188cebab9a6a7 (diff) | |
parent | 13d222c591f2c2a74bcf19f046f76fa3531bf98a (diff) | |
download | nixlib-3688b764d005fc32dc4944f306cffb80c1d238b1.tar nixlib-3688b764d005fc32dc4944f306cffb80c1d238b1.tar.gz nixlib-3688b764d005fc32dc4944f306cffb80c1d238b1.tar.bz2 nixlib-3688b764d005fc32dc4944f306cffb80c1d238b1.tar.lz nixlib-3688b764d005fc32dc4944f306cffb80c1d238b1.tar.xz nixlib-3688b764d005fc32dc4944f306cffb80c1d238b1.tar.zst nixlib-3688b764d005fc32dc4944f306cffb80c1d238b1.zip |
Merge staging-next into staging
Diffstat (limited to 'pkgs/development/compilers/sbcl/fix-2.4.0-aarch64-darwin.patch')
-rw-r--r-- | pkgs/development/compilers/sbcl/fix-2.4.0-aarch64-darwin.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/compilers/sbcl/fix-2.4.0-aarch64-darwin.patch b/pkgs/development/compilers/sbcl/fix-2.4.0-aarch64-darwin.patch new file mode 100644 index 000000000000..cd344f0cbd19 --- /dev/null +++ b/pkgs/development/compilers/sbcl/fix-2.4.0-aarch64-darwin.patch @@ -0,0 +1,39 @@ +From aed233638604b46c9a0c51e08d096d47303375ca Mon Sep 17 00:00:00 2001 +From: Douglas Katzman <dougk@google.com> +Date: Tue, 2 Jan 2024 09:20:48 -0500 +Subject: [PATCH] Fix multiple def error + +reported by Hraban Luyat +--- + src/runtime/gc-common.c | 1 + + src/runtime/gc.h | 2 +- + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/runtime/gc-common.c b/src/runtime/gc-common.c +index 51963b8ff..07536f628 100644 +--- a/src/runtime/gc-common.c ++++ b/src/runtime/gc-common.c +@@ -2999,6 +2999,7 @@ void recompute_gen_bytes_allocated() { + #endif + + #ifdef LISP_FEATURE_DARWIN_JIT ++_Atomic(char) *page_execp; + #include "sys_mmap.inc" + #include <errno.h> + /* darwin-jit has another reason to remap besides just zeroing, namely, +diff --git a/src/runtime/gc.h b/src/runtime/gc.h +index 804e6fce2..5fdc215c2 100644 +--- a/src/runtime/gc.h ++++ b/src/runtime/gc.h +@@ -151,7 +151,7 @@ extern void prepare_pages(bool commit, page_index_t start, page_index_t end, + * squeeze a bit into the 'type' field of the page table, but it's clearer to + * have this externally so that page type 0 remains as "free" */ + #ifdef LISP_FEATURE_DARWIN_JIT +-_Atomic(char) *page_execp; ++extern _Atomic(char) *page_execp; + static inline void set_page_executable(page_index_t i, bool val) { page_execp[i] = val; } + #endif + +-- +2.42.0 + |