* gdb.threads/manythreads.c (main): Check if PTHREAD_STACK_MIN is
authorPedro Alves <palves@redhat.com>
Sun, 7 Jun 2009 19:50:52 +0000 (19:50 +0000)
committerPedro Alves <palves@redhat.com>
Sun, 7 Jun 2009 19:50:52 +0000 (19:50 +0000)
defined before referencing it.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/manythreads.c

index 1fcc308663a9cc0f46f9850646ae6601333ed5cc..c38ac3d3e617bbf668556c2cefbd1f19f77a7206 100644 (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.
index 93128ebf4c3c1c4e86d9095d44fd930f7d2e1ca9..1eb2caba20ded2ca51bbee8ce86cfa2c90ec4c61 100644 (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.  */