diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-05-23 19:31:15 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-05-23 19:31:15 (GMT) |
| commit | edb38932e8f071b1326515067d41bc060807dec2 (patch) | |
| tree | 412b577e1bff527cbc9e106fca9f744233b6fe8d /unix/tclUnixThrd.c | |
| parent | 46aab3eb09ed92b1b43e3d08484dfe88efe06cab (diff) | |
| download | tcl-edb38932e8f071b1326515067d41bc060807dec2.zip tcl-edb38932e8f071b1326515067d41bc060807dec2.tar.gz tcl-edb38932e8f071b1326515067d41bc060807dec2.tar.bz2 | |
Unbreak build with other CFLAGS, such as TCL_MEM_DEBUG=1 or TCL_THREADS=0 on Linux
Diffstat (limited to 'unix/tclUnixThrd.c')
| -rw-r--r-- | unix/tclUnixThrd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c index 6ea258f..24c269d 100644 --- a/unix/tclUnixThrd.c +++ b/unix/tclUnixThrd.c @@ -166,7 +166,6 @@ Tcl_JoinThread( #endif } -#if TCL_THREADS /* *---------------------------------------------------------------------- * @@ -187,9 +186,12 @@ void TclpThreadExit( int status) { +#if TCL_THREADS pthread_exit(INT2PTR(status)); -} +#else /* TCL_THREADS */ + exit(status); #endif /* TCL_THREADS */ +} /* *---------------------------------------------------------------------- |
