summaryrefslogtreecommitdiff
path: root/src/OS/os.h-FreeBSD
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.h-FreeBSD
parent40525d07a858c90293bc09188fb539a1cec3f8aa (diff)
Enable use of sendfile on FreeBSD
Diffstat (limited to 'src/OS/os.h-FreeBSD')
-rw-r--r--src/OS/os.h-FreeBSD9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/OS/os.h-FreeBSD b/src/OS/os.h-FreeBSD
index bf43e0a3c..9b47de3d1 100644
--- a/src/OS/os.h-FreeBSD
+++ b/src/OS/os.h-FreeBSD
@@ -1,5 +1,7 @@
/* Exim: OS-specific C header file for FreeBSD */
+#include <sys/types.h>
+
#define HAVE_BSD_GETLOADAVG
#define HAVE_SETCLASSRESOURCES
#define HAVE_MMAP
@@ -34,4 +36,11 @@ typedef struct flock flock_t;
/* for more specific version constraints, include <sys/param.h> and look at
* __FreeBSD_version */
+
+/* When using DKIM, setting OS_SENDFILE can increase
+performance on outgoing mail a bit. */
+
+#define OS_SENDFILE
+extern ssize_t os_sendfile(int, int, off_t *, size_t);
+
/* End */