diff --git a/include/pthread.h b/include/pthread.h index 50ea4fbb80a..561b6070b96 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -402,7 +402,7 @@ typedef struct pthread_barrier_s pthread_barrier_t; struct pthread_once_s { - bool done; + volatile bool done; pthread_mutex_t mutex; };