Skip to content

Commit e121b6e

Browse files
committed
Bug fix for issue robbiehanson#113 - Missing imports for marcos
1 parent 23514e4 commit e121b6e

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

GCD/GCDAsyncSocket.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#import <Security/Security.h>
1313
#import <Security/SecureTransport.h>
1414
#import <dispatch/dispatch.h>
15+
#import <TargetConditionals.h>
16+
#import <Availability.h>
1517

1618
#include <sys/socket.h> // AF_INET, AF_INET6
1719

GCD/GCDAsyncUdpSocket.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
#import <Foundation/Foundation.h>
1212
#import <dispatch/dispatch.h>
13-
13+
#import <TargetConditionals.h>
14+
#import <Availability.h>
1415

1516
extern NSString *const GCDAsyncUdpSocketException;
1617
extern NSString *const GCDAsyncUdpSocketErrorDomain;

RunLoop/AsyncSocket.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#endif
1414

1515
#import "AsyncSocket.h"
16+
#import <TargetConditionals.h>
1617
#import <sys/socket.h>
1718
#import <netinet/in.h>
1819
#import <arpa/inet.h>

RunLoop/AsyncUdpSocket.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#endif
1414

1515
#import "AsyncUdpSocket.h"
16+
#import <TargetConditionals.h>
1617
#import <sys/socket.h>
1718
#import <netinet/in.h>
1819
#import <arpa/inet.h>

0 commit comments

Comments
 (0)