With recent versions of gcc, on architectures where `long` and `time_t` are not
the same size, passing pointers to `long` to `gmtime_r(3)` and `localtime_r(3)`,
leads to "incompatible pointer type" errors. Use `time_t` instead.
Link:
https://bugs.debian.org/1091242
Signed-off-by: Jeremy Sowden <
jer...@azazel.net>
---
wmsun/wmsun.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/wmsun/wmsun.c b/wmsun/wmsun.c
index 4ab00c657d83..8b4542f30c9d 100644
--- a/wmsun/wmsun.c
+++ b/wmsun/wmsun.c
@@ -105,7 +105,8 @@ int main(int argc, char *argv[]) {
int n;
int Year, Month;
int DayOfMonth;
- long CurrentLocalTime, CurrentGMTTime, date;
+ time_t CurrentLocalTime, CurrentGMTTime;
+ long date;
double UT, val, LTRise, LTSet, LocalHour, hour24();
int H, M;
struct timeval timeout;
--
2.45.2