freebsd-ports/comms/fldigi/files/patch-src_dialogs_fl_digi.cxx

20 lines
508 B
C++
Raw Normal View History

--- src/dialogs/fl_digi.cxx.orig 2011-05-28 14:08:32.000000000 -0400
+++ src/dialogs/fl_digi.cxx 2011-05-29 18:51:27.000000000 -0400
@@ -26,6 +26,7 @@
#include <config.h>
#include <sys/types.h>
+#include <time.h>
#ifdef __WOE32__
# ifdef __CYGWIN__
@@ -1866,7 +1867,7 @@
Fl::repeat_timeout(st, ztimer);
struct tm tm;
- gmtime_r(&tv.tv_sec, &tm);
+ gmtime_r((const time_t *)&tv.tv_sec, &tm);
if (!strftime(ztbuf, sizeof(ztbuf), "%Y%m%d %H%M", &tm))
memset(ztbuf, 0, sizeof(ztbuf));
else