[36723] trunk/base/src/thread2.6.diff
afb at macports.org
afb at macports.org
Tue May 13 04:32:14 PDT 2008
Revision: 36723
http://trac.macosforge.org/projects/macports/changeset/36723
Author: afb at macports.org
Date: 2008-05-13 04:32:11 -0700 (Tue, 13 May 2008)
Log Message:
-----------
add patch needed for Leopard, to the included tclthread (#13495)
Modified Paths:
--------------
trunk/base/src/thread2.6.diff
Modified: trunk/base/src/thread2.6.diff
===================================================================
--- trunk/base/src/thread2.6.diff 2008-05-13 11:21:41 UTC (rev 36722)
+++ trunk/base/src/thread2.6.diff 2008-05-13 11:32:11 UTC (rev 36723)
@@ -50,3 +50,30 @@
variable mutex thread::mutex
variable elock [$mutex create]
variable store tsv::
+# tcl-64/tcl_ext/thread/thread.diff
+--- src/thread2.6/generic/threadPoolCmd.c.orig 2003-11-27 11:54:19.000000000 -0800
++++ src/thread2.6/generic/threadPoolCmd.c 2005-07-20 23:10:12.000000000 -0700
+@@ -1710,18 +1710,21 @@
+ *
+ *----------------------------------------------------------------------
+ */
++#ifdef __WIN32__
++#include <sys/timeb.h>
++#else
++#include <sys/time.h>
++#endif
+ static void
+ GetTime(timePtr)
+ Tcl_Time *timePtr;
+ {
+ #ifdef __WIN32__
+-#include <sys/timeb.h>
+ struct timeb tb;
+ (void)ftime(&tb);
+ timePtr->sec = tb.time;
+ timePtr->usec = tb.millitm * 1000;
+ #else
+-#include <sys/time.h>
+ struct timeval tv;
+ (void)gettimeofday(&tv, NULL);
+ timePtr->sec = tv.tv_sec;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080513/cbf6aef9/attachment.html
More information about the macports-changes
mailing list