ports/astro/wmsun/files/patch-wmsun.c
Rodrigo Osorio f641d910db astro/wmsun: update to 1.06
Changelog: https://repo.or.cz/dockapps.git/blob_plain/HEAD:/wmsun/ChangeLog

Major changes:
  * Fix typo in manpage.
  * Move version number definition to Makefile
  * Add 'dist' target to Makefile to generate tarball

Port changes:
  * reformat Makefile to make portfmt happy
  * update WWW (error 404)
2024-10-18 00:04:57 +02:00

20 lines
665 B
C

--- wmsun.c.orig 2024-10-17 21:51:08 UTC
+++ wmsun.c
@@ -43,7 +43,7 @@
/*
* Includes
*/
-#define _POSIX_C_SOURCE 1
+#define _POSIX_C_SOURCE 200112L
#include <X11/X.h> /* for ButtonPress, ButtonRelease, etc */
#include <X11/Xlib.h> /* for XEvent, ConnectionNumber, etc */
#include <math.h> /* for cos, sin */
@@ -105,7 +105,7 @@
int n;
int Year, Month;
int DayOfMonth;
- long CurrentLocalTime, CurrentGMTTime, date;
+ time_t CurrentLocalTime, CurrentGMTTime, date;
double UT, val, LTRise, LTSet, LocalHour, hour24();
int H, M;
struct timeval timeout;