1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- Fix build on -6

Notified by:	erwin (via pointyhat)
This commit is contained in:
Diane Bruce 2009-08-25 19:02:44 +00:00
parent 960366ad08
commit a61c14eab6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=240321
2 changed files with 20 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= fldigi
PORTVERSION= 3.11
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= comms hamradio
MASTER_SITES= http://www.w1hkj.com/fldigi-distro/ \
${MASTER_SITE_LOCAL}

View File

@ -0,0 +1,19 @@
--- src/dialogs/fl_digi.cxx.orig 2009-08-24 13:16:59.000000000 -0400
+++ src/dialogs/fl_digi.cxx 2009-08-24 13:17:51.000000000 -0400
@@ -25,6 +25,7 @@
#include <config.h>
#include <sys/types.h>
+#include <time.h>
#ifdef __CYGWIN__
# include <w32api/windows.h>
@@ -1310,7 +1311,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