Remove linux/version.h include from port.h

pull/16469/head
Yash Tibrewal 6 years ago
parent 8d47cd4992
commit 0cb982974f
  1. 4
      src/core/lib/iomgr/internal_errqueue.cc
  2. 1
      src/core/lib/iomgr/port.h

@ -24,10 +24,6 @@
#ifdef GRPC_POSIX_SOCKET_TCP
#ifdef GPR_LINUX
#include <linux/version.h>
#endif /* GPR_LINUX */
bool kernel_supports_errqueue() {
#ifdef LINUX_VERSION_CODE
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0)

@ -60,7 +60,6 @@
#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

Loading…
Cancel
Save