freebsd-ports/comms/fldigi/files/patch-src_cw__rtty_fsk.cxx
Diane Bruce 5842b9081b comms/fldigi: Update to 4.1.21
Version 4.1.21
      * Maintenance release
        . many changes, refer to git log

    IPC log report
      * change logging date report to date ON vice date OFF

    xmlrpc methods
      * add new methods all data in ADIF 3.1.2 compliant format
        . logbook.last_record
        . logbook.all_records
      * add new methods as ADIF 3.1.2 compliant strings
        . modem.get_mode
        . modem.get_submode
      * add new date-time methods
        . log.get_time_on
        . log.get_date_on
        . log.get_time_off
        . log.get_date_off
        date-time correctly synchronized and in ZULU time
2022-05-05 19:45:55 -04:00

34 lines
609 B
C++

--- src/cw_rtty/fsk.cxx.orig 2022-05-04 22:44:19 UTC
+++ src/cw_rtty/fsk.cxx
@@ -39,7 +39,9 @@
#include <string.h>
#include <unistd.h>
-//#include <time.h>
+#ifdef __FreeBSD__
+#include <time.h>
+#else
#if !HAVE_CLOCK_GETTIME
# ifdef __APPLE__
# include <mach/mach_time.h>
@@ -50,10 +52,12 @@
# include <sys/time.h>
# endif
#endif
+#endif
#include <math.h>
#include <stdio.h>
+#ifndef __FreeBSD__
#ifdef __WIN32__
# include <windows.h>
//# include <chrono>
@@ -67,6 +71,7 @@
//# include <chrono>
# include <sys/timerfd.h>
# endif
+#endif
#endif
#include "threads.h"