diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2006-11-17 08:41:01 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2006-11-17 08:41:01 +0000 |
commit | 27c05cfbd320b31c91961e4a0a87bafb88c9e7d7 (patch) | |
tree | 1a47a875cd5bbb5b28e222a63b9ba4575b4809be /net-p2p/gtk-gnutella/files/patch-bsched | |
parent | Graphical user interface for network monitoring package "netmond". (diff) |
- Fix bug that would prevent FreeBSD nodes from uploading files (obtained from Gtk-Gnutella SVN)
- Move from X11BASE to LOCALBASE
- New option to build without GUI
- Various readability changes to ./Configure options
- Update comments on configuration knobs
PR: ports/105576
Submitted by: Jonas Sonntag <jonas@schiebtsich.net> (maintainer)
Diffstat (limited to 'net-p2p/gtk-gnutella/files/patch-bsched')
-rw-r--r-- | net-p2p/gtk-gnutella/files/patch-bsched | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net-p2p/gtk-gnutella/files/patch-bsched b/net-p2p/gtk-gnutella/files/patch-bsched new file mode 100644 index 000000000000..081842f8c6f5 --- /dev/null +++ b/net-p2p/gtk-gnutella/files/patch-bsched @@ -0,0 +1,22 @@ +--- src/core/bsched.c Fri Nov 10 00:01:26 2006 ++++ src/core/bsched.c Tue Nov 14 12:19:18 2006 +@@ -1591,16 +1591,11 @@ + */ + + { +- off_t written; +- int flags = 0; ++ off_t written = 0; + +-#if defined(SF_NODISKIO) +- flags |= SF_NODISKIO; +-#endif /* SF_NODISKIO */ +- +- r = sendfile(in_fd, out_fd, start, amount, NULL, &written, flags); ++ r = sendfile(in_fd, out_fd, start, amount, NULL, &written, 0); + if ((ssize_t) -1 == r) { +- if (is_temporary_error(errno) || EBUSY == errno) ++ if (is_temporary_error(errno)) + r = written > 0 ? (ssize_t) written : (ssize_t) -1; + } else { + r = amount; /* Everything written, but returns 0 if OK */ |