* gdb.threads/manythreads.c (main): Check if PTHREAD_STACK_MIN is

defined before referencing it.
This commit is contained in:
Pedro Alves 2009-06-07 19:50:52 +00:00
parent 81b9222220
commit 17592de300
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-06-07 Pedro Alves <pedro@codesourcery.com>
* gdb.threads/manythreads.c (main): Check if PTHREAD_STACK_MIN is
defined before referencing it.
2009-06-03 Doug Evans <dje@google.com>
* gdb.arch/i386-sse.exp: Test xmm[8-15] if amd64.

View File

@ -42,7 +42,10 @@ main (int argc, char **argv)
int i, j;
pthread_attr_init (&attr);
#ifdef PTHREAD_STACK_MIN
pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN);
#endif
/* Create a ton of quick-executing threads, then wait for them to
complete. */