From a79878585a1c5e32bafbc6d1e73f91fd6e4293bf Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Wed, 5 Sep 2018 10:28:45 +0000 Subject: [PATCH] * io/async.h: Use __gthread_mutex_t, not pthread_mutex_t. From-SVN: r264120 --- libgfortran/ChangeLog | 4 ++++ libgfortran/io/async.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index ca5e7b91a95..6287b2b9dff 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,7 @@ +2018-09-05 Hans-Peter Nilsson + + * io/async.h: Use __gthread_mutex_t, not pthread_mutex_t. + 2018-09-01 Jerry DeLisle * io/io.h: Change declaration of vlist type to diff --git a/libgfortran/io/async.h b/libgfortran/io/async.h index 4ddb498069c..c747bc5aa7b 100644 --- a/libgfortran/io/async.h +++ b/libgfortran/io/async.h @@ -337,8 +337,8 @@ struct adv_cond typedef struct async_unit { - pthread_mutex_t io_lock; /* Lock for doing actual I/O. */ - pthread_mutex_t lock; /* Lock for manipulating the queue structure. */ + __gthread_mutex_t io_lock; /* Lock for doing actual I/O. */ + __gthread_mutex_t lock; /* Lock for manipulating the queue structure. */ bool empty; struct {