diff options
author | Pedro Alves <pedro@codesourcery.com> | 2009-06-07 19:50:51 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2009-06-07 19:50:51 +0000 |
commit | e83f4f0b6910c27e3d1e6c50dcc04ddd8f68e509 (patch) | |
tree | 4aadb1430036d1390cb20a77be011fd602f1b19f /gdb/testsuite/gdb.threads | |
parent | 685b55f764ce7b80bf4eef9e5f92218122453170 (diff) | |
download | gdb-e83f4f0b6910c27e3d1e6c50dcc04ddd8f68e509.tar.gz |
* gdb.threads/manythreads.c (main): Check if PTHREAD_STACK_MIN is
defined before referencing it.
Diffstat (limited to 'gdb/testsuite/gdb.threads')
-rw-r--r-- | gdb/testsuite/gdb.threads/manythreads.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.threads/manythreads.c b/gdb/testsuite/gdb.threads/manythreads.c index 93128ebf4c3..1eb2caba20d 100644 --- a/gdb/testsuite/gdb.threads/manythreads.c +++ b/gdb/testsuite/gdb.threads/manythreads.c @@ -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. */ |