Skip to content

fix build failure if OS doesn't support IPV6_TRANSPARENT#12956

Merged
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
wgallagher:bgallagher/fixIPV6_TRANSPARENT
Sep 2, 2020
Merged

fix build failure if OS doesn't support IPV6_TRANSPARENT#12956
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
wgallagher:bgallagher/fixIPV6_TRANSPARENT

Conversation

@wgallagher
Copy link
Copy Markdown

Signed-off-by: Bill Gallagher bgallagher@lyft.com

Commit Message: fix build failure if OS doesn't support IPV6_TRANSPARENT
Additional Description: the build currently fails with: external/envoy/source/common/api/posix/os_sys_calls_impl.cc:145:51: error: use of undeclared identifier 'IPV6_TRANSPARENT'
Risk Level: low

Signed-off-by: Bill Gallagher <bgallagher@lyft.com>
@snowp
Copy link
Copy Markdown
Contributor

snowp commented Sep 2, 2020

I think this is right but maybe one of the reviewers of the offending PR wants to take a look? @mattklein123 @danzh2010 @chadr123

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!


bool OsSysCallsImpl::supportsIpTransparent() const {
#if !defined(__linux__)
#if !defined(__linux__) || !defined(IPV6_TRANSPARENT)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could probably just remove !defined(__linux__)? I don't feel strongly about it either way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants