diff options
author | Trevor Johnson <trevor@FreeBSD.org> | 2002-11-25 00:17:28 +0000 |
---|---|---|
committer | Trevor Johnson <trevor@FreeBSD.org> | 2002-11-25 00:17:28 +0000 |
commit | bd902f794fbf2bd3edb125b868ae4b8e2d1d2de4 (patch) | |
tree | 7342a0a36b00a1aebcb548ebe733fcb29c35c316 /devel/gecc/files/patch-io.cpp | |
parent | Upgrade to 5.0.10. (diff) |
Add preliminary port of gecc.
Diffstat (limited to 'devel/gecc/files/patch-io.cpp')
-rw-r--r-- | devel/gecc/files/patch-io.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/devel/gecc/files/patch-io.cpp b/devel/gecc/files/patch-io.cpp new file mode 100644 index 000000000000..f75f54620c5b --- /dev/null +++ b/devel/gecc/files/patch-io.cpp @@ -0,0 +1,22 @@ +$FreeBSD$ + +--- io.cpp.orig Sat Oct 19 11:51:21 2002 ++++ io.cpp Thu Nov 7 15:29:13 2002 +@@ -36,7 +36,7 @@ + #include "util.h" + #include <stdio.h> + #ifdef HAVE_SENDFILE +-#include <sys/sendfile.h> ++#include <sys/socket.h> + #endif + + using namespace std; +@@ -162,7 +163,7 @@ size_t write_file(int fd, const string& + throw TransportException(__FILE__, __LINE__, tmp); + } + #ifdef HAVE_SENDFILE +- int rc = sendfile(fd, in, 0, filesize); ++ int rc = sendfile(fd, in, 0, filesize, 0, 0, 0); + if (rc<0) { + perror("sendfile"); + assert(0); |