Add version set GLIBC_2.19 for linux/powerpc
[glibc.git] / nptl / tst-mutexpi6.c
blob8881a1d2c005e4c5f419a6605f6ce2af020136d3
1 #include <pthread.h>
2 #include <stdio.h>
3 #include <stdlib.h>
6 pthread_mutexattr_t a;
7 pthread_mutexattr_t *attr;
9 static void
10 prepare (void)
12 attr = &a;
13 if (pthread_mutexattr_init (&a) != 0)
15 puts ("mutexattr_init failed");
16 exit (1);
19 if (pthread_mutexattr_setprotocol (&a, PTHREAD_PRIO_INHERIT) != 0)
21 puts ("mutexattr_setprotocol failed");
22 exit (1);
25 #define PREPARE(argc, argv) prepare ()
28 #define ATTR attr
29 #include "tst-mutex6.c"