commit | 3f6ed62504489822c6615652ff0c150dd6575749 | [log] [tgz] |
---|---|---|
author | Ryan Beasley <beasleyr@vmware.com> | Fri Mar 29 05:06:33 2019 -0700 |
committer | Jingwen Chen <jingwen@google.com> | Thu Apr 11 17:31:00 2019 -0400 |
tree | 809e443cc61b7986e899e599a387316135a2df46 | |
parent | 889f5fd7ab5c1461ce823ee9a3e315627c8b3698 [diff] |
bazel/grpc: include linux/tcp.h on Linux pre-glibc 2.17 Bazel 0.24.0 upgraded grpc from 1.13.0 to 1.18.0, and the latter makes use of the TCP_USER_TIMEOUT socket option. Problem: grpc conditions the option on the Linux kernel version but sources the option from glibc's `netinet/tcp.h`. glibc != Linux kernel, and that option wasn't imported to glibc until 2.17. We can't just build Bazel with glibc 2.17 because we still have to support CentOS 6 dev nodes which ship with glibc 2.12. So instead this change tweaks the grpc headers to conditionally include <linux/tcp.h> instead of <netinet/tcp.h>. Resolves https://github.com/bazelbuild/bazel/issues/7890.
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel only rebuilds what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.