freebsd-ports/comms/soundmodem/files/patch-soundcard_ptt.c
Diane Bruce 6ec5eaf60c - update to latest 0.17
- unbreak amd64 build

Feature safe:	yes
2012-11-10 16:56:40 +00:00

11 lines
388 B
C

--- soundcard/ptt.c.orig 2012-11-07 11:05:55.000000000 -0500
+++ soundcard/ptt.c 2012-11-07 11:06:15.000000000 -0500
@@ -176,7 +176,7 @@
#endif
logprintf(MLOG_INFO, "Opening PTT device \"%s\"\n", path);
- if ((fd = open(path, O_RDWR, 0)) < 0) {
+ if ((fd = open(path, O_RDWR|O_NONBLOCK, 0)) < 0) {
logprintf(MLOG_ERROR, "Cannot open PTT device \"%s\"\n", path);
return -1;
}