diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-10-07 14:25:21 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-10-07 14:25:21 (GMT) |
| commit | c3eafd6b5b1b130fda53db2f9ac98739d50df56e (patch) | |
| tree | b2668ef918364195a157a42d38a1218cb8f86a20 /unix/tclUnixNotfy.c | |
| parent | 7a3e9722d57c09bb6083710b0c392f702fd1de61 (diff) | |
| parent | 2f7e092347edc7b03377a0e1005a3414817143ae (diff) | |
| download | tcl-c3eafd6b5b1b130fda53db2f9ac98739d50df56e.zip tcl-c3eafd6b5b1b130fda53db2f9ac98739d50df56e.tar.gz tcl-c3eafd6b5b1b130fda53db2f9ac98739d50df56e.tar.bz2 | |
Fix for [d4e464ae48]: tcl 8.5.15/8.6.1 breaks python make check on darwin
Diffstat (limited to 'unix/tclUnixNotfy.c')
| -rw-r--r-- | unix/tclUnixNotfy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c index c6c9759..254614f 100644 --- a/unix/tclUnixNotfy.c +++ b/unix/tclUnixNotfy.c @@ -194,7 +194,7 @@ static Tcl_ThreadId notifierThread; #ifdef TCL_THREADS static void NotifierThreadProc(ClientData clientData); -#ifdef HAVE_PTHREAD_ATFORK +#if defined(HAVE_PTHREAD_ATFORK) && !defined(__APPLE__) static int atForkInit = 0; static void AtForkPrepare(void); static void AtForkParent(void); @@ -290,7 +290,7 @@ Tcl_InitNotifier(void) */ Tcl_MutexLock(¬ifierMutex); -#ifdef HAVE_PTHREAD_ATFORK +#if defined(HAVE_PTHREAD_ATFORK) && !defined(__APPLE__) /* * Install pthread_atfork handlers to reinitialize the notifier in the * child of a fork. @@ -304,7 +304,7 @@ Tcl_InitNotifier(void) } atForkInit = 1; } -#endif +#endif /* HAVE_PTHREAD_ATFORK */ /* * Check if my process id changed, e.g. I was forked * In this case, restart the notifier thread and close the @@ -1313,7 +1313,7 @@ NotifierThreadProc( TclpThreadExit(0); } -#ifdef HAVE_PTHREAD_ATFORK +#if defined(HAVE_PTHREAD_ATFORK) && !defined(__APPLE__) /* *---------------------------------------------------------------------- * |
