Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect: Fix build when not ENABLE_IPV6 #10344

Closed
wants to merge 1 commit into from

Conversation

ryandesign
Copy link
Contributor

Check for ENABLE_IPV6 before accessing AF_INET6. Fixes build failure introduced in 1c5d8ac.

See #10248

Fixes this error when building for Classic Mac OS:

### MWC68K Compiler Error:
#	(ai_family == AF_INET6)? "ipv6" : "ip"));
#	              ^^^^^^^^
# undefined identifier 'AF_INET6'
#----------------------------------------------------------
File "connect.c"; Line 398
#----------------------------------------------------------
# errors caused tool to abort

Check for ENABLE_IPV6 before accessing AF_INET6. Fixes build failure
introduced in 1c5d8ac.

See curl#10248
@jay jay closed this in 6a45abf Jan 26, 2023
@jay
Copy link
Member

jay commented Jan 26, 2023

Thanks

@ryandesign ryandesign deleted the ryandesign-ipv6 branch January 26, 2023 13:39
bch pushed a commit to bch/curl that referenced this pull request Jul 19, 2023
Check for ENABLE_IPV6 before accessing AF_INET6. Fixes build failure
introduced in 1c5d8ac.

Closes curl#10344
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants