Looks like 10.5 has more aggressive stack requirements than 10.6.
This commit is contained in:
parent
2e43b12616
commit
615dce02b1
12
harness.c
12
harness.c
|
@ -18,11 +18,17 @@ typedef unsigned char u_char;
|
|||
|
||||
#ifdef __APPLE__
|
||||
/* Bollocks. Looks like OS X chokes unless STACK_SIZE is a multiple of 32k. */
|
||||
#define STACK_SIZE 32768
|
||||
# include <AvailabilityMacros.h>
|
||||
# if !defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6
|
||||
/* Hmm, and looks like 10.5 has more aggressive stack requirements than 10.6. */
|
||||
# define STACK_SIZE 65536
|
||||
# else
|
||||
# define STACK_SIZE 32768
|
||||
# endif
|
||||
#elif linux
|
||||
#define STACK_SIZE 32768
|
||||
# define STACK_SIZE 32768
|
||||
#else
|
||||
#error Define STACK_SIZE for your platform. It should probably not be less than 32k?
|
||||
# error Define STACK_SIZE for your platform. It should probably not be less than 32k?
|
||||
#endif
|
||||
|
||||
Process *current_process = NULL;
|
||||
|
|
Loading…
Reference in New Issue