Enable use of sendfile on FreeBSD
[exim.git] / src / OS / os.c-Linux
index 4bca77615d5f2d5b6aabffa885885b4dc9e0c9d6..dd65c8b3930cfbe71326db9c3cbcfc1be29962f3 100644 (file)
@@ -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 */