nptl: Fix pthread_create.c build with clang
commit3d8b5dde879c6e024548118914da5bfcbd5170a7
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 25 Oct 2022 14:07:59 +0000 (25 11:07 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 1 Nov 2022 12:51:10 +0000 (1 09:51 -0300)
treedb0efd8129788999b833d80a1b798994f76fa9e6
parent8161978f89c3454e1b70e08efd98923e6a317a56
nptl: Fix pthread_create.c build with clang

clang complains that libc_hidden_data_def (__nptl_threads_events)
creates an invalid alias:

  pthread_create.c:50:1: error: alias must point to a defined variable or function
  libc_hidden_data_def (__nptl_threads_events)
  ^
  ../include/libc-symbols.h:621:37: note: expanded from macro
  'libc_hidden_data_def'

It seems that clang requires that a proper prototype is defined prior
the hidden alias creation.

Reviewed-by: Fangrui Song <maskray@google.com>
nptl/pthread_create.c