aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/port.h
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2018-08-24 12:27:56 -0700
committerGravatar GitHub <noreply@github.com>2018-08-24 12:27:56 -0700
commitaab47cbdf22ce951939d635a3ff661074661a837 (patch)
tree661352038c2c92f9eedaa2f6098b708fd873c5d6 /src/core/lib/iomgr/port.h
parent53b92dc094a0ee40767a005f8ae63fcd0a3e65c9 (diff)
parent841f186041240612cca1b0010b21c5841a55fc98 (diff)
Merge pull request #15941 from yashykt/fathomtcpchanges
Fathom tcp changes
Diffstat (limited to 'src/core/lib/iomgr/port.h')
-rw-r--r--src/core/lib/iomgr/port.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/port.h b/src/core/lib/iomgr/port.h
index 066417b93c..a4688fd0ef 100644
--- a/src/core/lib/iomgr/port.h
+++ b/src/core/lib/iomgr/port.h
@@ -60,6 +60,12 @@
#define GRPC_HAVE_IP_PKTINFO 1
#define GRPC_HAVE_MSG_NOSIGNAL 1
#define GRPC_HAVE_UNIX_SOCKET 1
+#include <linux/version.h>
+#ifdef LINUX_VERSION_CODE
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0)
+#define GRPC_LINUX_ERRQUEUE 1
+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0) */
+#endif /* LINUX_VERSION_CODE */
#define GRPC_LINUX_MULTIPOLL_WITH_EPOLL 1
#define GRPC_POSIX_FORK 1
#define GRPC_POSIX_HOST_NAME_MAX 1