mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
(__libc_argv, __libc_argc): Make extern. (__hurd_threadvar_max, __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): New variables.
This commit is contained in:
@ -93,8 +93,15 @@ describe_port (string_t description, mach_port_t port)
|
||||
}
|
||||
|
||||
|
||||
/* Common defn so we don't link in the itimer code unnecessarily. */
|
||||
thread_t _hurd_itimer_thread; /* XXX */
|
||||
/* We want _HURD_ITIMER_THREAD, but don't want to link in the itimer code
|
||||
unnecessarily. */
|
||||
#if 0 /* libc.so.0.0 needs this defined, so make it a weak alias for now. */
|
||||
extern thread_t _hurd_itimer_thread; /* XXX */
|
||||
weak_extern (_hurd_itimer_thread)
|
||||
#else
|
||||
static thread_t default_hurd_itimer_thread;
|
||||
weak_alias (default_hurd_itimer_thread, _hurd_itimer_thread)
|
||||
#endif
|
||||
|
||||
kern_return_t
|
||||
_S_msg_report_wait (mach_port_t msgport, thread_t thread,
|
||||
@ -105,7 +112,7 @@ _S_msg_report_wait (mach_port_t msgport, thread_t thread,
|
||||
if (thread == _hurd_msgport_thread)
|
||||
/* Cute. */
|
||||
strcpy (description, "msgport");
|
||||
else if (thread == _hurd_itimer_thread)
|
||||
else if (&_hurd_msgport_thread && thread == _hurd_itimer_thread)
|
||||
strcpy (description, "itimer");
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user