summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cont.c b/cont.c
index adf975b..37c301a 100644
--- a/cont.c
+++ b/cont.c
@@ -517,7 +517,7 @@ fiber_entry(void *arg)
}
#else /* _WIN32 */
-#ifdef MAP_STACK
+#if defined(MAP_STACK) && !defined(__FreeBSD__)
#define FIBER_STACK_FLAGS (MAP_PRIVATE | MAP_ANON | MAP_STACK)
#else
#define FIBER_STACK_FLAGS (MAP_PRIVATE | MAP_ANON)