diff options
author | LIU Hao <lh_mouse@126.com> | 2022-05-27 23:12:48 +0800 |
---|---|---|
committer | Jonathan Yong <10walls@gmail.com> | 2022-10-10 07:16:03 +0000 |
commit | decbb5bf7cc7317fefa53f0d64082cf020e85e42 (patch) | |
tree | 67dd6a5ab8404aeb260d9763afd7277f47e47ce6 /libgfortran/io/async.h | |
parent | 570eb458c64a15d33817994f8e4640b63c81d6d4 (diff) | |
download | gcc-decbb5bf7cc7317fefa53f0d64082cf020e85e42.zip gcc-decbb5bf7cc7317fefa53f0d64082cf020e85e42.tar.gz gcc-decbb5bf7cc7317fefa53f0d64082cf020e85e42.tar.bz2 |
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 <lh_mouse@126.com>
Signed-off-by: Jonathan Yong <10walls@gmail.com>
Diffstat (limited to 'libgfortran/io/async.h')
-rw-r--r-- | libgfortran/io/async.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/io/async.h b/libgfortran/io/async.h index efd542a..d57722a 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; |