diff options
Diffstat (limited to 'nptl/tst-mutexpi6.c')
-rw-r--r-- | nptl/tst-mutexpi6.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nptl/tst-mutexpi6.c b/nptl/tst-mutexpi6.c index 42cda377d1..8881a1d2c0 100644 --- a/nptl/tst-mutexpi6.c +++ b/nptl/tst-mutexpi6.c @@ -3,11 +3,13 @@ #include <stdlib.h> -static pthread_mutexattr_t a; +pthread_mutexattr_t a; +pthread_mutexattr_t *attr; static void prepare (void) { + attr = &a; if (pthread_mutexattr_init (&a) != 0) { puts ("mutexattr_init failed"); @@ -23,5 +25,5 @@ prepare (void) #define PREPARE(argc, argv) prepare () -#define ATTR &a +#define ATTR attr #include "tst-mutex6.c" |