Skip to content

Remove dead headers#1427

Open
bmehta001 wants to merge 3 commits intomainfrom
bhamehta/issue-1418-main
Open

Remove dead headers#1427
bmehta001 wants to merge 3 commits intomainfrom
bhamehta/issue-1418-main

Conversation

@bmehta001
Copy link
Copy Markdown

Addresses #1418

  • Remove dead netinet6/in6.h and other imports from ODWReachability and its Objective-C unit test so Apple builds no longer fail on the private-header error from main
  • Also remove other imports that are redundant, since they are imported transitively via #import <arpa/inet.h>

bmehta001 and others added 2 commits April 17, 2026 18:37
Remove the dead netinet6/in6.h imports from ODWReachability and its Objective-C unit test so Apple builds no longer fail on the private-header error from main.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bmehta001 bmehta001 requested a review from a team as a code owner April 20, 2026 11:41
#import <XCTest/XCTest.h>
#import "ODWReachability.h"

#import <sys/socket.h>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The netinet6/in6.h removal fixes #1418, but this file still uses struct sockaddr_in, AF_INET, IN_LINKLOCALNETNUM, and htonl, whose canonical headers are /.


#import "ODWReachability.h"

#import <sys/socket.h>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

2 participants