mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
skip MAP_STACK
on FreeBSD
This commit is contained in:
parent
256f34ab6b
commit
4927f25148
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ static struct nt_stack_chunk_header *
|
|||
nt_alloc_thread_stack_chunk(void)
|
||||
{
|
||||
int mmap_flags = MAP_ANONYMOUS | MAP_PRIVATE;
|
||||
#ifdef MAP_STACK // not available on macOS
|
||||
#if defined(MAP_STACK) && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
|
||||
mmap_flags |= MAP_STACK;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue