aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-06-07 19:50:52 +0000
committerPedro Alves <palves@redhat.com>2009-06-07 19:50:52 +0000
commit17592de300e28b9f2bdcd6d4d8002d8fcab70ccb (patch)
tree8bddc4b0799b9fbaac709216da35f72691410438 /gdb/testsuite/gdb.threads
parent81b9222220c55933198d7d1db7d618d9baf75550 (diff)
downloadgdb-17592de300e28b9f2bdcd6d4d8002d8fcab70ccb.zip
gdb-17592de300e28b9f2bdcd6d4d8002d8fcab70ccb.tar.gz
gdb-17592de300e28b9f2bdcd6d4d8002d8fcab70ccb.tar.bz2
* 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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.threads/manythreads.c b/gdb/testsuite/gdb.threads/manythreads.c
index 93128eb..1eb2cab 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. */