From 0b02ae84e64a37f1672d9584bd8280a0b2f07309 Mon Sep 17 00:00:00 2001 From: Juan Francisco Cantero Hurtado Date: Thu, 10 Jan 2013 01:23:20 +0100 Subject: [PATCH] It fixes a crash on OpenBSD It fixes a crash in the installation on OpenBSD. Racket reaches the limits of the shell when it is compiled with a non-root user account. Tested on OpenBSD-current amd64. Merge to v5.3.2 (cherry picked from commit 99c60d725c4a72ff68fc892517be31d7502db93f) --- src/racket/sconfig.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/racket/sconfig.h b/src/racket/sconfig.h index 2be96cb766..dc5d6a37ef 100644 --- a/src/racket/sconfig.h +++ b/src/racket/sconfig.h @@ -297,6 +297,10 @@ # define SCHEME_PLATFORM_LIBRARY_SUBPATH "i386-openbsd" # endif +/* Same reason as for FreeBSD? */ +# define ASSUME_FIXED_STACK_SIZE +# define FIXED_STACK_SIZE 1048576 + # include "uconfig.h" # undef HAS_STANDARD_IOB @@ -360,7 +364,7 @@ # error Unported platform. # endif -/* pthreads always enabled via configure', and +/* pthreads always enabled via `configure', and initial pthread's stack size doesn't use rlimit: */ # define ASSUME_FIXED_STACK_SIZE # define FIXED_STACK_SIZE 1048576 @@ -1015,7 +1019,7 @@ # error Unported platform. # endif -/* pthreads always enabled via configure', and +/* pthreads always enabled via `configure', and initial pthread's stack size doesn't use rlimit: */ # define ASSUME_FIXED_STACK_SIZE # define FIXED_STACK_SIZE 1048576