|
2004-08-19
| ||
| 22:42 | • Ticket [656765ffff] formatClock/cygwin compile fix status still Closed with ... artifact: 4590cc8c97 user: kennykb | |
| 22:42 | • Closed ticket [656765ffff]. artifact: 0326c32209 user: kennykb | |
|
2004-02-13
| ||
| 02:37 | • Ticket [656765ffff]: 4 changes artifact: b7c49c24b2 user: winstan | |
| 02:30 | • Ticket [656765ffff]: 4 changes artifact: f79cdc4cf4 user: winstan | |
|
2004-02-02
| ||
| 02:49 | • Ticket [656765ffff]: 4 changes artifact: 4b067c72e7 user: chomo | |
|
2002-12-20
| ||
| 19:48 | • Ticket [656765ffff]: 2 changes artifact: 83e4ae4802 user: dkf | |
| 19:37 | • Ticket [656765ffff]: 4 changes artifact: aaba75ba9f user: pascalscheffers | |
| 19:37 | • Add attachment clock-cygwin-8.4.1.patch to ticket [656765ffffffffff|656... artifact: 6d81bd10cb user: pascalscheffers | |
| 12:27 | • New ticket [656765ffff] formatClock/cygwin compile fix. artifact: 8d0eaacf35 user: pascalscheffers | |
formatClock/cygwin compile fix
Closed / Fixed656765ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 22 years ago
Descriptionplain2002-12-20 12:27:46
in generic/tclClock.c:formatClock
there are two assignments to timezone (from time.h),
but because cygwin defines timezone:
#define timezone ((long int) _timezone)
gcc does not accept it as an correct lvalue for:
tclClock.c: 310
timezone = 0;
(this is in a '#ifdef kludge for timezone not in struct
TM_ZONE required' block)
my patch fixes it so it compiles again by directly
using _timezone #if defined(__CYGWIN__).
pascalscheffersplain2002-12-20 19:37:25
File Added - 38005: clock-cygwin-8.4.1.patch
dkf Ticket [656765ffff]: 2 changes
[History diff]2002-12-20 19:48:58
chomoplain2004-02-02 02:49:17
Logged In: YES user_id=943591 not do harm
winstanplain2004-02-13 02:30:00
Logged In: YES user_id=972673 This patch breaks what the #ifdef kludge is trying to do: Save timezone and restore it later. If the first #if !defined(__CYGWIN__) is moved up one line to include savedTimeZone = timezone; then it'll still work. I'll try to attach a patch for 8.4.5
winstanplain2004-02-13 02:37:32
Logged In: YES
user_id=972673
--- tcl8.4.5/generic/tclClock.c2003-02-01
+++ tcl8.4.5-fix/generic/tclClock.c2004-02-12
@@ -311,8 +311,13 @@
savedTZEnv = NULL;
}
Tcl_SetVar2(interp, "env", "TZ", "GMT", TCL_GLOBAL_ONLY);
+#if !defined(__CYGWIN__)
savedTimeZone = timezone;
timezone = 0;
+#else
+ savedTimeZone = _timezone;
+ _timezone = 0;
+#endif
tzset();
}
#endif
@@ -357,7 +362,11 @@
} else {
Tcl_UnsetVar2(interp, "env", "TZ", TCL_GLOBAL_ONLY);
}
+#if !defined(__CYGWIN__)
timezone = savedTimeZone;
+#else
+ _timezone = savedTimeZone;
+#endif
tzset();
}
Tcl_MutexUnlock( &clockMutex );
kennykb Closed ticket [656765ffff].
[History diff]2004-08-19 22:42:00
kennykbplain2004-08-19 22:42:01
Logged In: YES user_id=99768 The relevant code in tclClock.c isn't even there in 8.5, so any changes needed to make it compile appear to be moot.
Log in (anonymous is fine) to add a comment.
Attachments:
- clock-cygwin-8.4.1.patch [download] added by pascalscheffers on 2002-12-20 19:37:25. [details]