summaryrefslogtreecommitdiff
path: root/src/OS
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2017-04-26 15:28:22 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2017-04-26 20:27:10 +0100
commiteeb35890a1eefbdf6bd8fcb86fcc31233835b0df (patch)
treed621ed004758bec2c9ded25b18af8be1749f8db3 /src/OS
parent5ea5d64c99a3f99722034f11d7bf79ab9d10f014 (diff)
Enable use of sendfile
Diffstat (limited to 'src/OS')
-rw-r--r--src/OS/os.h-Linux5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/OS/os.h-Linux b/src/OS/os.h-Linux
index cc1cef99b..3e9303cab 100644
--- a/src/OS/os.h-Linux
+++ b/src/OS/os.h-Linux
@@ -18,9 +18,10 @@ with the issue. */
/* When using the DKIM, setting HAVE_LINUX_SENDFILE can increase
performance on outgoing mail a bit. Note: With older glibc versions
this setting will conflict with the _FILE_OFFSET_BITS=64 setting
-defined as part of the Linux CFLAGS. */
+defined as part of the Linux CFLAGS. As of 2017 those are declared
+to be too old to build by default. */
-/* #define HAVE_LINUX_SENDFILE */
+#define HAVE_LINUX_SENDFILE
#define F_FREESP O_TRUNC
typedef struct flock flock_t;