1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/astro/ephem/files/patch-ai
Satoshi Asami 7a50961592 An interactive terminal-based ephemeris program. The source tarball is
in LOCAL_PORTS because those out on the 'net can't agree on the right
size and include DOS executables and such.

PR:		3407
Submitted by:	Slaven Rezic <eserte@cs.tu-berlin.de>
1997-06-03 09:14:13 +00:00

29 lines
672 B
Plaintext

*** time.c.orig Sat Mar 14 23:22:29 1992
--- time.c Wed Apr 23 13:15:42 1997
***************
*** 13,20 ****
* returning 0.
*/
- #define TZB
-
#ifdef VMS
#undef TZA
#undef TZB
--- 13,18 ----
***************
*** 62,68 ****
--- 60,71 ----
sex_dec (tp->tm_hour, tp->tm_min, tp->tm_sec, &hr);
mjd = day + hr/24.0;
tp = localtime (&c);
+ #ifdef __FreeBSD__
+ tz = -tp->tm_gmtoff/3600;
+ strcpy(tznm, tp->tm_zone);
+ #else
settzstuff (tp->tm_isdst ? 1 : 0, np);
+ #endif
} else {
/* if gmtime() doesn't work, we assume the timezone stuff won't
* either, so we just use what it is and leave it alone. Some