diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-02 11:58:18 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-02 11:58:18 (GMT) |
| commit | 3e6987856502d7a1c873cfa9de0abc2b09924476 (patch) | |
| tree | d47b49f5576e364c5de808232dd154f650b89841 /unix/tclUnixThrd.c | |
| parent | 88eafacc822a9e546b2d075195d179e223a32296 (diff) | |
| parent | aef36bf11d4ad79a6f2e6691f132fd4c444822df (diff) | |
| download | tcl-3e6987856502d7a1c873cfa9de0abc2b09924476.zip tcl-3e6987856502d7a1c873cfa9de0abc2b09924476.tar.gz tcl-3e6987856502d7a1c873cfa9de0abc2b09924476.tar.bz2 | |
merge trunk.
tclStubLib.c: protect loading incompatible Tcl9 extensions in Tcl8
Diffstat (limited to 'unix/tclUnixThrd.c')
| -rw-r--r-- | unix/tclUnixThrd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c index 789dbb6..9a1efbe 100644 --- a/unix/tclUnixThrd.c +++ b/unix/tclUnixThrd.c @@ -15,7 +15,7 @@ #ifdef TCL_THREADS -typedef struct ThreadSpecificData { +typedef struct { char nabuf[16]; } ThreadSpecificData; @@ -683,7 +683,7 @@ TclpInetNtoa( static volatile int initialized = 0; static pthread_key_t key; -typedef struct allocMutex { +typedef struct { Tcl_Mutex tlock; pthread_mutex_t plock; } allocMutex; @@ -691,10 +691,10 @@ typedef struct allocMutex { Tcl_Mutex * TclpNewAllocMutex(void) { - struct allocMutex *lockPtr; + allocMutex *lockPtr; register pthread_mutex_t *plockPtr; - lockPtr = malloc(sizeof(struct allocMutex)); + lockPtr = malloc(sizeof(allocMutex)); if (lockPtr == NULL) { Tcl_Panic("could not allocate lock"); } |
