diff options
Diffstat (limited to 'gdb/testsuite/gdb.threads/pthreads.c')
-rw-r--r-- | gdb/testsuite/gdb.threads/pthreads.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.threads/pthreads.c b/gdb/testsuite/gdb.threads/pthreads.c index 0bfc618..ac0f133 100644 --- a/gdb/testsuite/gdb.threads/pthreads.c +++ b/gdb/testsuite/gdb.threads/pthreads.c @@ -23,11 +23,11 @@ #include <stdlib.h> #include <pthread.h> -/* Under OSF 2.0 & 3.0 and HPUX 10, the second arg of pthread_create +/* Under HPUX 10, the second arg of pthread_create is prototyped to be just a "pthread_attr_t", while under Solaris it is a "pthread_attr_t *". Arg! */ -#if defined (__osf__) || defined (__hpux__) +#if defined (__hpux__) #define PTHREAD_CREATE_ARG2(arg) arg #define PTHREAD_CREATE_NULL_ARG2 null_attr static pthread_attr_t null_attr; @@ -124,13 +124,11 @@ main(argc, argv) foo (1, 2, 3); -#ifndef __osf__ if (pthread_attr_init (&attr)) { perror ("pthread_attr_init 1"); exit (1); } -#endif #ifdef PTHREAD_SCOPE_SYSTEM if (pthread_attr_setscope (&attr, PTHREAD_SCOPE_SYSTEM)) |