freebsd-ports/audio/xmms-cdread/files/patch-server.c
Norikatsu Shigemura 3cdfc2ce15 Add xmms-cdread 0.14a, a XMMS input plugin for read AudioCD
via IDE bus.

PR:		ports/49972
Submitted by:	Sergey V. Belov <argail@csite.ru>
2003-03-23 07:51:47 +00:00

20 lines
514 B
C

--- server.c.orig Fri Jul 20 00:26:42 2001
+++ server.c Sun Mar 23 16:35:33 2003
@@ -282,7 +282,7 @@
if (r < 0) {
req->rest[0] = 0;
if (errno == EAGAIN) {
- errno = ETIME;
+ errno = ETIMEDOUT;
if (++rtr < READ_TIMEOUT) {
xmms_usleep(READ_USEC);
continue;
@@ -312,7 +312,7 @@
gint w = write(sock, p, strlen(p));
if (w < 0) {
if (errno == EAGAIN) {
- errno = ETIME;
+ errno = ETIMEDOUT;
if (++rtr < READ_TIMEOUT) {
xmms_usleep(READ_USEC);
continue;