Fix build for hurd/thread-self.c for i386.
authorFlavio Cruz <flaviocruz@gmail.com>
Mon, 22 May 2023 05:16:50 +0000 (01:16 -0400)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 22 May 2023 07:38:09 +0000 (09:38 +0200)
commit9cc27336c9b6fc7b59d1adbf36f0a044a0b89a59
treec62827a2f2a3e6080dcf7d4353806b3c05b880bb
parente1b02c5ed4099a53db8f356303fc0ef88db8a131
Fix build for hurd/thread-self.c for i386.

We need to include hurd.h for libc_hidden_proto (__hurd_thread_self),
introduced in b44c1e12524b ("hurd: Fix using interposable
hurd_thread_self")

This the error log:

In file included from <command-line>:
./../include/libc-symbols.h:472:33: error: '__EI___hurd_thread_self' aliased to undefined symbol '__GI___hurd_thread_self'
  472 |   extern thread __typeof (name) __EI_##name \
      |                                 ^~~~~
./../include/libc-symbols.h:468:3: note: in expansion of macro '__hidden_ver2'
  468 |   __hidden_ver2 (, local, internal, name)
      |   ^~~~~~~~~~~~~
./../include/libc-symbols.h:476:41: note: in expansion of macro '__hidden_ver1'
  476 | #  define hidden_def(name)              __hidden_ver1(__GI_##name, name, name);
      |                                         ^~~~~~~~~~~~~
./../include/libc-symbols.h:557:32: note: in expansion of macro 'hidden_def'
  557 | # define libc_hidden_def(name) hidden_def (name)
      |                                ^~~~~~~~~~
thread-self.c:27:1: note: in expansion of macro 'libc_hidden_def'
   27 | libc_hidden_def (__hurd_thread_self)
      | ^~~~~~~~~~~~~~~
Message-Id: <ZGr6wj2UOxg3F0qH@jupiter.tail36e24.ts.net>
hurd/thread-self.c