Remove CMSG_SPACE for macos

pull/19516/head
Yash Tibrewal 5 years ago
parent 02ff96bd31
commit 1487ac42cc
  1. 2
      src/core/lib/iomgr/tcp_posix.cc

@ -443,7 +443,7 @@ static void tcp_do_read(grpc_tcp* tcp) {
constexpr size_t cmsg_alloc_space =
CMSG_SPACE(sizeof(grpc_core::scm_timestamping)) + CMSG_SPACE(sizeof(int));
#else
constexpr size_t cmsg_alloc_space = CMSG_SPACE(sizeof(int));
constexpr size_t cmsg_alloc_space = 24 /* CMSG_SPACE(sizeof(int)) */;
#endif /* GRPC_LINUX_ERRQUEUE */
char cmsgbuf[cmsg_alloc_space];
for (size_t i = 0; i < iov_len; i++) {

Loading…
Cancel
Save