author | alwin <alwin> | 2004-03-11 16:05:05 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-03-11 16:05:05 (UTC) |
commit | b982060527a595f52c82ac954fe8c9cc03f09c34 (patch) (side-by-side diff) | |
tree | e54eccbe4988d36c86d6a6873843c94a7ceaaea3 /noncore/net/mail/libetpanstuff/mailstream_socket.patch | |
parent | fc5afbf858680de615c1c2d824e6b2c629ed2d1f (diff) | |
download | opie-b982060527a595f52c82ac954fe8c9cc03f09c34.zip opie-b982060527a595f52c82ac954fe8c9cc03f09c34.tar.gz opie-b982060527a595f52c82ac954fe8c9cc03f09c34.tar.bz2 |
cleanups and switch to new etpan-tarball
Diffstat (limited to 'noncore/net/mail/libetpanstuff/mailstream_socket.patch') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libetpanstuff/mailstream_socket.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/noncore/net/mail/libetpanstuff/mailstream_socket.patch b/noncore/net/mail/libetpanstuff/mailstream_socket.patch new file mode 100644 index 0000000..10c8fa3 --- a/dev/null +++ b/noncore/net/mail/libetpanstuff/mailstream_socket.patch @@ -0,0 +1,36 @@ +Index: tools/mailstream_socket.c +=================================================================== +RCS file: /cvsroot/libetpan/libetpan/tools/mailstream_socket.c,v +retrieving revision 1.13 +diff -u -d -r1.13 mailstream_socket.c +--- tools/mailstream_socket.c 2 Mar 2004 23:54:17 -0000 1.13 ++++ tools/mailstream_socket.c 11 Mar 2004 12:30:02 -0000 +@@ -44,6 +44,7 @@ + */ + #include <sys/time.h> + #include <sys/types.h> ++#include <sys/socket.h> + #include <unistd.h> + #include <sys/select.h> + +@@ -176,8 +177,8 @@ + if (!FD_ISSET(socket_data->fd, &fds_read)) + return 0; + } +- +- return read(socket_data->fd, buf, count); ++ ++ return recv(socket_data->fd,buf,count,MSG_NOSIGNAL); + } + + static ssize_t mailstream_low_socket_write(mailstream_low * s, +@@ -207,8 +208,7 @@ + if (!FD_ISSET(socket_data->fd, &fds_write)) + return 0; + } +- +- return write(socket_data->fd, buf, count); ++ return send(socket_data->fd,buf,count,MSG_NOSIGNAL); + } + + |