]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgfortran: Use `__gthread_t` instead of `pthread_t`
authorLIU Hao <lh_mouse@126.com>
Fri, 27 May 2022 15:12:48 +0000 (23:12 +0800)
committerJonathan Yong <10walls@gmail.com>
Mon, 10 Oct 2022 07:16:03 +0000 (07:16 +0000)
It used to cause errors if a thread model other than `posix` was selected,
which looks like a leftover from a79878585a1c5e32bafbc6d1e73f91fd6e4293bf.

libgfortran/
* io/async.h (struct async_unit): Use `__gthread_t` instead
of `pthread_t`.

Signed-off-by: LIU Hao <lh_mouse@126.com>
Signed-off-by: Jonathan Yong <10walls@gmail.com>
libgfortran/io/async.h

index efd542a45e8247dafe0daee835444dbd580e82a4..d57722a95e44d607573da81e81e1f58be6ba1684 100644 (file)
@@ -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;