freebsd_map_stack.patch

Lucas Nussbaum, 08/28/2011 03:53 PM

Download (719 Bytes)

View differences:

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