Skip to content

Commit abefcd4

Browse files
committed
Fixing sslContext definition in header and implementation file. It should be included on iOS when supported by min_deployment_target.
1 parent 9616a40 commit abefcd4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

GCD/GCDAsyncSocket.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,9 @@ typedef enum GCDAsyncSocketError GCDAsyncSocketError;
888888
**/
889889
- (BOOL)enableBackgroundingOnSocket;
890890

891-
#else
891+
#endif
892+
893+
#if SECURE_TRANSPORT_MAYBE_AVAILABLE
892894

893895
/**
894896
* This method is only available from within the context of a performBlock: invocation.

GCD/GCDAsyncSocket.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7174,7 +7174,9 @@ - (BOOL)enableBackgroundingOnSocketWithCaveat // Deprecated in iOS 4.???
71747174
return [self enableBackgroundingOnSocketWithCaveat:YES];
71757175
}
71767176

7177-
#else
7177+
#endif
7178+
7179+
#if SECURE_TRANSPORT_MAYBE_AVAILABLE
71787180

71797181
- (SSLContextRef)sslContext
71807182
{

0 commit comments

Comments
 (0)