summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2021-03-10 15:05:11 +0000
committerchristos <christos@NetBSD.org>2021-03-10 15:05:11 +0000
commit3df89a568b991efcaee32cc718fe4f0f7b57232e (patch)
treeca3b80acabe9b6bab4f004778e2a803165d7a5fb /lib/libpthread
parent4941042e458808ae97bab98f3343a51cb31ba1e9 (diff)
Use __pthread_volatile for ptc_waiters (Greg A. Woods)
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/pthread_types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/pthread_types.h b/lib/libpthread/pthread_types.h
index aff1d01066d..177837af9be 100644
--- a/lib/libpthread/pthread_types.h
+++ b/lib/libpthread/pthread_types.h
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_types.h,v 1.25 2020/06/10 22:45:15 ad Exp $ */
+/* $NetBSD: pthread_types.h,v 1.26 2021/03/10 15:05:11 christos Exp $ */
/*-
* Copyright (c) 2001, 2008, 2020 The NetBSD Foundation, Inc.
@@ -172,7 +172,7 @@ struct __pthread_cond_st {
/* Protects the queue of waiters */
__pthread_spin_t ptc_lock;
- void *volatile ptc_waiters;
+ void *__pthread_volatile ptc_waiters;
void *ptc_spare;
pthread_mutex_t *ptc_mutex; /* Current mutex */