diff options
author | Christopher Faylor <me@cgf.cx> | 2000-05-18 03:20:01 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-05-18 03:20:01 +0000 |
commit | 12e659efa8f172167a526f251e36571f6f976740 (patch) | |
tree | af0e1b0e10b0d1f85074c9a0bc2fd3aadb4fe17e /winsup/cygwin/sync.cc | |
parent | 2dc173fe91dfdf9fbf2844f54bb064f43a8c0004 (diff) | |
download | newlib-12e659efa8f172167a526f251e36571f6f976740.zip newlib-12e659efa8f172167a526f251e36571f6f976740.tar.gz newlib-12e659efa8f172167a526f251e36571f6f976740.tar.bz2 |
* dcrt0.cc (dll_crt0_1): Initialize mainthread stuff here before anything needs
it.
* sigproc.cc (sigproc_init): Move mainthread initialization out of here.
* sigproc.h (sigthread): Add init() method.
(sigframe): Don't try to initialize muto.
* sync.cc: Undef WaitForSingleObject to avoid recursion.
Diffstat (limited to 'winsup/cygwin/sync.cc')
-rw-r--r-- | winsup/cygwin/sync.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/sync.cc b/winsup/cygwin/sync.cc index 2ca3a27..5036c3d 100644 --- a/winsup/cygwin/sync.cc +++ b/winsup/cygwin/sync.cc @@ -23,6 +23,8 @@ details. */ muto NO_COPY muto_start; +#undef WaitForSingleObject + /* Constructor */ muto::muto (int inh, const char *s) : sync (0), visits(0), waiters(-1), tid (0), next (NULL) { |