From 13966ac24edb9471341c156a6f03d85dccea7203 Mon Sep 17 00:00:00 2001 From: Diane Bruce Date: Tue, 1 Jan 2008 18:13:56 +0000 Subject: The heart of the package is 'libcw'. This is a library which, when built, offers the following basic CW services to a caller program: o Morse code character translation tables, and lookup functions o Morse code low-level timing calculations o A 'sidetone' generation and queueing system, using either the system sound card, the console speaker, or both o Optional keying control for an external device, say a transmitter, or an oscillator o CW character and string send routines, tied in with the character lookup o CW receive routines, also tied in to the character lookup o Adaptive speed tracking of received CW o An iambic keyer, with both Curtis 8044 types A and B timing o Straight key emulation Submitted by: self --- comms/unixcw/files/patch-src_cwlib_cwlib.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 comms/unixcw/files/patch-src_cwlib_cwlib.c (limited to 'comms/unixcw/files/patch-src_cwlib_cwlib.c') diff --git a/comms/unixcw/files/patch-src_cwlib_cwlib.c b/comms/unixcw/files/patch-src_cwlib_cwlib.c new file mode 100644 index 000000000000..5515bc570400 --- /dev/null +++ b/comms/unixcw/files/patch-src_cwlib_cwlib.c @@ -0,0 +1,25 @@ +--- src/cwlib/cwlib.c.orig 2006-06-22 21:54:01.000000000 -0400 ++++ src/cwlib/cwlib.c 2008-01-01 11:54:49.000000000 -0500 +@@ -63,6 +63,7 @@ + + #if defined(BSD) + # define ERR_NO_SUPPORT EPROTONOSUPPORT ++# define RTSIG_MAX NSIG + #else + # define ERR_NO_SUPPORT EPROTO + #endif +@@ -2837,8 +2838,14 @@ + * crude, but perhaps just slightly better than doing nothing. + */ + if (cw_volume > 0) ++/* FreeBSD at least uses hz directly, I'll assume other BSDs do too. - db */ ++#ifdef BSD ++ argument = frequency != TONE_SILENT ++ ? frequency : 0; ++#else + argument = frequency != TONE_SILENT + ? KIOCSOUND_CLOCK_TICK_RATE / frequency : 0; ++#endif + else + argument = 0; + -- cgit v1.2.3