diff mbox series

libgfortran: Use `__gthread_t` instead of `pthread_t`

Message ID b3808673-58b0-5cc7-d65f-c88521b5dc73@126.com
State New
Headers show
Series libgfortran: Use `__gthread_t` instead of `pthread_t` | expand

Commit Message

LIU Hao May 27, 2022, 3:18 p.m. UTC
The attached patch addresses a build issue when <pthread.h> is not included. Please review.
diff mbox series

Patch

diff --git a/libgfortran/io/async.h b/libgfortran/io/async.h
index efd542a45e8..d57722a95e4 100644
--- a/libgfortran/io/async.h
+++ b/libgfortran/io/async.h
@@ -351,7 +351,7 @@  typedef struct async_unit
   struct adv_cond work;
   struct adv_cond emptysignal;
   struct st_parameter_dt *pdt;
-  pthread_t thread;
+  __gthread_t thread;
   struct transfer_queue *head;
   struct transfer_queue *tail;