Bug #5241 ยป freebsd_map_stack.patch
ruby1.9.1-1.9.3~preview1+svn33077/cont.c 2011-08-28 07:34:24.000000000 +0100 | ||
---|---|---|
/*
|
||
* FreeBSD require a first (i.e. addr) argument of mmap(2) is not NULL
|
||
* if MAP_STACK is passed.
|
||
* http://www.FreeBSD.org/cgi/query-pr.cgi?pr=158755
|
||
*/
|
||
#if defined(MAP_STACK) && !defined(__FreeBSD__)
|
||
#if defined(MAP_STACK) && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
|
||
#define FIBER_STACK_FLAGS (MAP_PRIVATE | MAP_ANON | MAP_STACK)
|
||
#else
|
||
#define FIBER_STACK_FLAGS (MAP_PRIVATE | MAP_ANON)
|