ports/comms/hamlib/files/patch-src_misc.c
Diane Bruce 04e2b6e7c0 comms/hamlib: Newest c compiler in 14 is pickier
Code was trying to use a function as an integer (localtime)
2023-02-16 13:24:11 -05:00

12 lines
320 B
C

--- src/misc.c.orig 2023-01-01 00:12:52 UTC
+++ src/misc.c
@@ -2581,7 +2581,8 @@ char *date_strget(char *buf, int buflen, int localtime
if (localtime)
{
mytm = localtime_r(&t, &result);
- mytimezone = timezone;
+ /* For FreeBSD */
+ mytimezone = mytm->tm_gmtoff;
}
else
{