Skip to content

Commit

Permalink
skip MAP_STACK on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1 committed Dec 20, 2023
1 parent 256f34a commit bde019f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thread_pthread_mn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bde019f

Please sign in to comment.