diff options
Diffstat (limited to 'posix')
-rw-r--r-- | posix/getopt.c | 2 | ||||
-rw-r--r-- | posix/regex.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/posix/getopt.c b/posix/getopt.c index e4ae3340e8..4f2d068271 100644 --- a/posix/getopt.c +++ b/posix/getopt.c @@ -71,7 +71,7 @@ Cambridge, MA 02139, USA. */ #endif #endif -#ifdef WIN32 +#if defined (WIN32) && !defined (__CYGWIN32__) /* It's not Unix, really. See? Capital letters. */ #include <windows.h> #define getpid() GetCurrentProcessId() diff --git a/posix/regex.c b/posix/regex.c index 85c297b295..3dd03b26c3 100644 --- a/posix/regex.c +++ b/posix/regex.c @@ -1011,9 +1011,9 @@ static const char *re_error_msgid[] = This is a variable only so users of regex can assign to it; we never change it ourselves. */ #if defined (MATCH_MAY_ALLOCATE) -/* 8600 was enough to cause a crash on Ultrix, +/* 4400 was enough to cause a crash on Alpha OSF/1, whose default stack limit is 2mb. */ -int re_max_failures = 8000; +int re_max_failures = 4000; #else int re_max_failures = 2000; #endif |