diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/pika/posix_stack_non_executable_0_6_0_12.patch')
-rw-r--r-- | var/spack/repos/builtin/packages/pika/posix_stack_non_executable_0_6_0_12.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pika/posix_stack_non_executable_0_6_0_12.patch b/var/spack/repos/builtin/packages/pika/posix_stack_non_executable_0_6_0_12.patch new file mode 100644 index 0000000000..c25e1fe407 --- /dev/null +++ b/var/spack/repos/builtin/packages/pika/posix_stack_non_executable_0_6_0_12.patch @@ -0,0 +1,13 @@ +diff --git a/libs/pika/coroutines/include/pika/coroutines/detail/posix_utility.hpp b/libs/pika/coroutines/include/pika/coroutines/detail/posix_utility.hpp +index d53ac752..7c02f781 100644 +--- a/libs/pika/coroutines/include/pika/coroutines/detail/posix_utility.hpp ++++ b/libs/pika/coroutines/include/pika/coroutines/detail/posix_utility.hpp +@@ -79,7 +79,7 @@ namespace pika::threads::coroutines::detail::posix { + inline void* alloc_stack(std::size_t size) + { + void* real_stack = ::mmap(nullptr, size + EXEC_PAGESIZE, +- PROT_EXEC | PROT_READ | PROT_WRITE, ++ PROT_READ | PROT_WRITE, + #if defined(__APPLE__) + MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, + #elif defined(__FreeBSD__) |