From 4d029f3940b1f91b5ee06ccd724c90245c9d52cc Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 28 Nov 2001 00:06:35 +0000 Subject: * cygwin.din (ualarm): New export. * dcrt0.cc (_dll_crt0): Add experimental tls storage declaration. (dll_crt0): Ditto. * debug.cc (thread_stub): Ditto. * thread.cc: Minor cleanup. (__pthread_create): Add experimental tls storage declaration. * miscfuncs.cc: Define tls index. * winsup.h: Declare experimental tls storage. * window.cc (alarm): Use old timer return from setitimer. (ualarm): New function. --- winsup/cygwin/dcrt0.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'winsup/cygwin/dcrt0.cc') diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 1dfccbedc..84754b250 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -803,6 +803,7 @@ initial_env () extern "C" void __stdcall _dll_crt0 () { + DECLARE_TLS_STORAGE; initial_env (); char zeros[sizeof (fork_info->zero)] = {0}; #ifdef DEBUGGING @@ -853,6 +854,7 @@ _dll_crt0 () void dll_crt0 (per_process *uptr) { + DECLARE_TLS_STORAGE; /* Set the local copy of the pointer into the user space. */ if (uptr && uptr != user_data) { -- cgit v1.2.3