diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-07-11 13:12:10 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-07-11 13:12:10 +0800 |
commit | ab06e531dfe6b222f28fa16f43922581af7253e4 (patch) | |
tree | bbbe3d1aab9816d809704bcccdc7365c9f10af74 /mail/evolution/files | |
parent | 345cefdfea77697bb7515e76b60c436d58e5dcaa (diff) | |
download | marcuscom-ports-ab06e531dfe6b222f28fa16f43922581af7253e4.tar marcuscom-ports-ab06e531dfe6b222f28fa16f43922581af7253e4.tar.gz marcuscom-ports-ab06e531dfe6b222f28fa16f43922581af7253e4.tar.bz2 marcuscom-ports-ab06e531dfe6b222f28fa16f43922581af7253e4.tar.lz marcuscom-ports-ab06e531dfe6b222f28fa16f43922581af7253e4.tar.xz marcuscom-ports-ab06e531dfe6b222f28fa16f43922581af7253e4.tar.zst marcuscom-ports-ab06e531dfe6b222f28fa16f43922581af7253e4.zip |
Update to 2.7.4.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6543 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'mail/evolution/files')
-rw-r--r-- | mail/evolution/files/patch-widgets_e-timezone-dialog_e-timezone-dialog.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/mail/evolution/files/patch-widgets_e-timezone-dialog_e-timezone-dialog.c b/mail/evolution/files/patch-widgets_e-timezone-dialog_e-timezone-dialog.c new file mode 100644 index 000000000..a64407192 --- /dev/null +++ b/mail/evolution/files/patch-widgets_e-timezone-dialog_e-timezone-dialog.c @@ -0,0 +1,34 @@ +--- widgets/e-timezone-dialog/e-timezone-dialog.c.orig Mon Jul 10 21:50:12 2006 ++++ widgets/e-timezone-dialog/e-timezone-dialog.c Mon Jul 10 22:11:54 2006 +@@ -80,7 +80,9 @@ struct _ETimezoneDialogPrivate { + + #ifndef G_OS_WIN32 /* Declared properly in time.h already */ + extern char *tzname[2]; ++#ifndef __BSD_VISIBLE + extern long timezone; ++#endif + extern int daylight; + #endif + +@@ -317,9 +319,20 @@ static const icaltimezone* + get_local_timezone() + { + icaltimezone *zone; ++ long offset; ++#ifdef __BSD_VISIBLE ++ time_t tt; ++ struct tm tm; ++#endif + + tzset(); +- zone = icaltimezone_get_builtin_timezone_from_offset (-timezone, tzname[0]); ++#ifdef __BSD_VISIBLE ++ localtime_r (&tt, &tm); ++ offset = tm.tm_gmtoff; ++#else ++ offset = -timezone; ++#endif ++ zone = icaltimezone_get_builtin_timezone_from_offset (offset, tzname[0]); + + return zone; + } |