iomgr: fix wrong glibc version check (#28238)

TCP_USER_TIMEOUT is available since 2.18, not 2.17. Upstream commit is
[e83d7298](https://sourceware.org/git/?p=glibc.git;a=commit;h=e83d72988d89378e7c70a1b7ba0b450a699ea70a).
pull/28528/head
Bernhard Walle 3 years ago committed by GitHub
parent 90340c24c4
commit 166d75c25a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/core/lib/iomgr/port.h

@ -73,9 +73,9 @@
#if __GLIBC_PREREQ(2, 10)
#define GRPC_LINUX_SOCKETUTILS 1
#endif
#if !(__GLIBC_PREREQ(2, 17))
#if !(__GLIBC_PREREQ(2, 18))
/*
* TCP_USER_TIMEOUT wasn't imported to glibc until 2.17. Use Linux system
* TCP_USER_TIMEOUT wasn't imported to glibc until 2.18. Use Linux system
* header instead.
*/
#define GRPC_LINUX_TCP_H 1

Loading…
Cancel
Save