Skip to content

Commit 8635db1

Browse files
committed
Some legacy SDKs may require a particular import order for net interface header to work (e.g., iPhoneOS6.1).
1 parent ba98c8e commit 8635db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

darwin/Platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ in the source distribution for its full text.
1515
#include <math.h>
1616
#include <stdlib.h>
1717
#include <unistd.h>
18-
#include <net/if.h>
1918
#include <net/if_types.h>
2019
#include <net/route.h>
2120
#include <sys/socket.h>
2221
#include <mach/port.h>
22+
#include <net/if.h> // After `sys/socket.h` for struct `sockaddr` (for iOS6 SDK)
2323

2424
#include <CoreFoundation/CFBase.h>
2525
#include <CoreFoundation/CFDictionary.h>

0 commit comments

Comments
 (0)