summaryrefslogtreecommitdiff
path: root/src/OS/os.c-Linux
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2017-05-06 20:19:31 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2017-05-06 21:04:11 +0100
commit7d758a6a6842fac6c511039c29d76300e2e21ccd (patch)
tree2fe98fe2787486cb4fc164283148c9d37fc5e7f3 /src/OS/os.c-Linux
parent40525d07a858c90293bc09188fb539a1cec3f8aa (diff)
Enable use of sendfile on FreeBSD
Diffstat (limited to 'src/OS/os.c-Linux')
-rw-r--r--src/OS/os.c-Linux12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/OS/os.c-Linux b/src/OS/os.c-Linux
index 4bca77615..dd65c8b39 100644
--- a/src/OS/os.c-Linux
+++ b/src/OS/os.c-Linux
@@ -150,4 +150,16 @@ return yield;
#endif /* FIND_RUNNING_INTERFACES */
+
+/*************
+* Sendfile *
+*************/
+#include <sys/sendfile.h>
+
+ssize_t
+os_sendfile(int out, int in, off_t * off, size_t cnt)
+{
+return sendfile(out, in, off, cnt);
+}
+
/* End of os.c-Linux */