diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2005-11-05 05:29:26 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2005-11-05 05:29:26 +0000 |
commit | c5273993c4cc80f5711f304140431ae91b4ab01c (patch) | |
tree | 596af6df75359075e711c6a6dd62f54367a9c481 /audio/rhythmbox-devel/files/patch-daapsharing_rb-daap-src.c | |
parent | Bump PORTREVISION to chase the glib20 shared library update. (diff) |
Update to 0.9.1.
Notes
Notes:
svn path=/head/; revision=147272
Diffstat (limited to 'audio/rhythmbox-devel/files/patch-daapsharing_rb-daap-src.c')
-rw-r--r-- | audio/rhythmbox-devel/files/patch-daapsharing_rb-daap-src.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/audio/rhythmbox-devel/files/patch-daapsharing_rb-daap-src.c b/audio/rhythmbox-devel/files/patch-daapsharing_rb-daap-src.c new file mode 100644 index 000000000000..fdbf98e762a5 --- /dev/null +++ b/audio/rhythmbox-devel/files/patch-daapsharing_rb-daap-src.c @@ -0,0 +1,27 @@ +--- daapsharing/rb-daap-src.c.orig Sun Oct 16 05:50:21 2005 ++++ daapsharing/rb-daap-src.c Mon Oct 17 10:30:20 2005 +@@ -34,6 +34,7 @@ + #include <sys/ioctl.h> + #include <netdb.h> + #include <unistd.h> ++#include <signal.h> + + #include <libgnome/gnome-i18n.h> + #include <gst/gst.h> +@@ -580,7 +581,15 @@ gst_tcp_socket_write (int socket, const + size_t bytes_written = 0; + + while (bytes_written < count) { +- ssize_t wrote = send (socket, buf + bytes_written, count - bytes_written, MSG_NOSIGNAL); ++ ssize_t wrote; ++#ifdef MSG_NOSIGNAL ++ wrote = send (socket, buf + bytes_written, count - bytes_written, MSG_NOSIGNAL); ++#else ++ signal (SIGPIPE, SIG_IGN); ++ wrote = send (socket, buf + bytes_written, count - bytes_written, 0); ++ signal (SIGPIPE, SIG_DFL); ++#endif ++ + + if (wrote <= 0) { + return bytes_written; |