diff options
author | dgp <dgp@users.sourceforge.net> | 2012-06-08 13:00:01 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-06-08 13:00:01 (GMT) |
commit | 58d31239da28572a5de112c0792a6e071066fddc (patch) | |
tree | a95536b9e4112bea04b2f681b9bbafcffc805ba5 /unix/tclUnixPort.h | |
parent | bf94a594046e4aad39f6eeafddd452bf10ec6aaa (diff) | |
download | tcl-58d31239da28572a5de112c0792a6e071066fddc.zip tcl-58d31239da28572a5de112c0792a6e071066fddc.tar.gz tcl-58d31239da28572a5de112c0792a6e071066fddc.tar.bz2 |
3530533 Centralize #include <pthread.h> in the tclUnixPort.h header so that
old unix systems that need inclusion in all compilation units are supported.
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r-- | unix/tclUnixPort.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h index 8684757..6ff13eb 100644 --- a/unix/tclUnixPort.h +++ b/unix/tclUnixPort.h @@ -626,6 +626,7 @@ typedef int socklen_t; #define TclpExit exit #ifdef TCL_THREADS +# include <pthread.h> EXTERN struct tm *TclpLocaltime(CONST time_t *); EXTERN struct tm *TclpGmtime(CONST time_t *); /* #define localtime(x) TclpLocaltime(x) @@ -639,7 +640,6 @@ EXTERN struct tm *TclpGmtime(CONST time_t *); * Assume it is in pthread_np.h if it isn't in pthread.h. [Bug 1064882] * We might need to revisit this in the future. :^( */ -# include <pthread.h> # include <pthread_np.h> # endif # else |