freebsd-ports/comms/unixcw/files/patch-src_cw_cw.c
Stephen Hurd fb1feb30a1 Update unixcw and xcwcp to latest release.
This is also the first version where all the issues are fixed, and support
has been included for ALSA and Pulseaudio.  The ioctl() issue is resolved,
and gettext is properly controlled by the NLS option.

I'll be submitting these patches upstream, but due to the low rate of
releases, want to get them into ports first.

This is heavily modified from the submitted patch as every time anything
was tested, a new issue cropped up.

PR:		229782
Reported by:	Yuri Victorovich <yuri@freebsd.org>
2018-08-08 04:35:54 +00:00

20 lines
594 B
C

--- src/cw/cw.c.orig 2018-08-08 04:24:25 UTC
+++ src/cw/cw.c
@@ -598,7 +598,9 @@ int main (int argc, char *const argv[])
}
}
+#ifndef __FreeBSD__
if (config->audio_system == CW_AUDIO_ALSA
+ ) {
&& cw_is_pa_possible(NULL)) {
fprintf(stdout, "Selected audio system is ALSA, but audio on your system is handled by PulseAudio. Expect problems with timing.\n");
@@ -607,6 +609,7 @@ int main (int argc, char *const argv[])
fprintf(stdout, "Press Enter key to continue\n");
getchar();
}
+#endif
generator = cw_generator_new_from_config(config);
if (!generator) {