Only use tm_gmtoffm if __USE_BSD is defined.
2001-10-05 Shaun Merrigan <shaun.merrigan@sun.com> * archiver-client.c (location_client_load_rollback_data): Only use tm_gmtoffm if __USE_BSD is defined.
This commit is contained in:
parent
243e9e42c4
commit
cb870464b4
2 changed files with 9 additions and 1 deletions
|
@ -83,7 +83,10 @@ location_client_load_rollback_data (ConfigArchiver_Location location,
|
|||
|
||||
if (date != NULL) {
|
||||
date_c = dup_date (date);
|
||||
time_g = mktime (date_c) + date_c->tm_gmtoff;
|
||||
time_g = mktime (date_c);
|
||||
#ifdef __USE_BSD
|
||||
time_g += date_c->tm_gmtoff;
|
||||
#endif /* __USE_BSD */
|
||||
if (date_c->tm_isdst) time_g -= 3600;
|
||||
g_free (date_c);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue