Skip to content

Commit 7726379

Browse files
bmehta001Copilot
andcommitted
Restore explicit reachability socket headers
Add back the canonical sys/socket.h and netinet/in.h includes in ODWReachability.m and ODWReachabilityTests.mm while keeping the other dead imports removed. This avoids relying on transitive Apple headers in the reachability PR review. Co-authored-by: Copilot <[email protected]>
1 parent 24ec59b commit 7726379

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

tests/unittests/obj-c/ODWReachabilityTests.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#import <XCTest/XCTest.h>
1212
#import "ODWReachability.h"
1313

14+
#import <sys/socket.h>
15+
#import <netinet/in.h>
1416
#import <arpa/inet.h>
1517

1618
@interface ODWReachabilityTests : XCTestCase
@@ -104,4 +106,3 @@ - (void)testReachabilityForLocalWiFi
104106
}
105107

106108
@end
107-

third_party/Reachability/ODWReachability.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2727

2828
#import "ODWReachability.h"
2929

30+
#import <sys/socket.h>
31+
#import <netinet/in.h>
3032
#import <arpa/inet.h>
3133

3234

0 commit comments

Comments
 (0)