openbsd-ports/x11/swisswatch/patches/patch-ab

20 lines
615 B
Plaintext
Raw Normal View History

1998-01-24 16:36:51 -05:00
*** SwissWatch.c.orig Sun Jan 11 20:15:34 1998
--- SwissWatch.c Sun Jan 11 20:16:09 1998
***************
*** 280,286 ****
struct timeval tvnow;
gettimeofday(& tvnow, (struct timezone *) 0);
! tm_now = localtime(&tvnow.tv_sec);
#if HAVE_GMTOFF
w->swiss_watch.now_local_sec = tvnow.tv_sec+tm_now->tm_gmtoff;
#else /* not HAVE_GMTOFF */
--- 280,286 ----
struct timeval tvnow;
gettimeofday(& tvnow, (struct timezone *) 0);
! tm_now = localtime((time_t *)&tvnow.tv_sec);
#if HAVE_GMTOFF
w->swiss_watch.now_local_sec = tvnow.tv_sec+tm_now->tm_gmtoff;
#else /* not HAVE_GMTOFF */