Enable use of sendfile on FreeBSD
[exim.git] / src / OS / os.h-FreeBSD
index bf43e0a3cec0415c6681db719e063a2e5b9cd89a..9b47de3d10b62929a5cd3c89f4d9e636b049d71c 100644 (file)
@@ -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 */