From: LIU Hao Date: Fri, 27 May 2022 15:12:48 +0000 (+0800) Subject: libgfortran: Use `__gthread_t` instead of `pthread_t` X-Git-Tag: basepoints/gcc-14~4025 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=decbb5bf7cc7317fefa53f0d64082cf020e85e42;p=thirdparty%2Fgcc.git libgfortran: Use `__gthread_t` instead of `pthread_t` 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 Signed-off-by: Jonathan Yong <10walls@gmail.com> --- diff --git a/libgfortran/io/async.h b/libgfortran/io/async.h index efd542a45e82..d57722a95e44 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;