freebsd-ports/astro/gkrellsun/files/patch-CalcEphem.c
Pietro Cerutti 9f33b2e31d - Remove useless USE_X_PREFIX variable
- Fix a "missing include" warning

Approved by:	miwi (mentor)
2008-03-12 12:21:01 +00:00

19 lines
452 B
C

--- CalcEphem.c.orig 2001-11-07 01:34:50.000000000 +0100
+++ CalcEphem.c 2008-03-12 13:14:01.000000000 +0100
@@ -8,6 +8,7 @@
#include <config.h>
#endif
+#include <string.h>
#include <time.h>
#include <X11/X.h>
@@ -239,7 +240,7 @@
double UTRise, UTSet;
double LTRise, LTSet;
struct tm *LocalTime;
- long CurrentGMTTime;
+ time_t CurrentGMTTime;
double LocalHour, TimeZone;
SinH0 = sin( -50.0/60.0 * RadPerDeg );