* io/async.h: Use __gthread_mutex_t, not pthread_mutex_t.
authorHans-Peter Nilsson <hp@axis.com>
Wed, 5 Sep 2018 10:28:45 +0000 (10:28 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Wed, 5 Sep 2018 10:28:45 +0000 (10:28 +0000)
From-SVN: r264120

libgfortran/ChangeLog
libgfortran/io/async.h

index ca5e7b9..6287b2b 100644 (file)
@@ -1,3 +1,7 @@
+2018-09-05  Hans-Peter Nilsson  <hp@axis.com>
+
+       * io/async.h: Use __gthread_mutex_t, not pthread_mutex_t.
+
 2018-09-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        * io/io.h: Change declaration of vlist type to
index 4ddb498..c747bc5 100644 (file)
@@ -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
   {