summaryrefslogtreecommitdiff
path: root/src/OS/os.h-Linux
diff options
context:
space:
mode:
authorJeremy Harris <jgh@wizmail.org>2017-10-01 15:36:32 +0100
committerJeremy Harris <jgh@wizmail.org>2017-10-01 15:36:32 +0100
commitd5b80e59458182b2d557a929a18cb8c70cd56b68 (patch)
tree1707bd0710e1a37ef5872533ab531dd22b138d6d /src/OS/os.h-Linux
parentd5c0d8c9374623620844d539d4810da63e9abca1 (diff)
parente924c08b7d031b712013a7a897e2d430b302fe6c (diff)
Merge branch 'master' into 4.next
Diffstat (limited to 'src/OS/os.h-Linux')
-rw-r--r--src/OS/os.h-Linux15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/OS/os.h-Linux b/src/OS/os.h-Linux
index cc1cef99b..cc1f3cab2 100644
--- a/src/OS/os.h-Linux
+++ b/src/OS/os.h-Linux
@@ -5,6 +5,7 @@ does not pull in <features.h>. Best to just pull it in now and have done
with the issue. */
#include <features.h>
+#include <sys/types.h>
#define CRYPT_H
@@ -15,12 +16,14 @@ with the issue. */
#define NO_IP_VAR_H
#define SIG_IGN_WORKS
-/* When using the DKIM, setting HAVE_LINUX_SENDFILE can increase
+/* When using DKIM, setting OS_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 OS_SENDFILE
+extern ssize_t os_sendfile(int, int, off_t *, size_t);
#define F_FREESP O_TRUNC
typedef struct flock flock_t;
@@ -29,8 +32,8 @@ typedef struct flock flock_t;
#define OS_STRSIGNAL
#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__NetBSD_kernel__)
-#define SIOCGIFCONF_GIVES_ADDR
-#define HAVE_SYS_MOUNT_H
+# define SIOCGIFCONF_GIVES_ADDR
+# define HAVE_SYS_MOUNT_H
#endif
#if defined(__linux__)
@@ -69,6 +72,8 @@ then change the 0 to 1 in the next block. */
# define EXIM_HAVE_OPENAT
#endif
+/* TCP Fast Open support */
+
#include <netinet/tcp.h> /* for TCP_FASTOPEN */
#include <sys/socket.h> /* for MSG_FASTOPEN */
#if defined(TCP_FASTOPEN) && !defined(MSG_FASTOPEN)