THRIFT-762. Include CoreServices.h if we are not compiling on the iPhone.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@939024 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cocoa/src/transport/TSocketClient.m b/lib/cocoa/src/transport/TSocketClient.m
index b4183fb..74d4af9 100644
--- a/lib/cocoa/src/transport/TSocketClient.m
+++ b/lib/cocoa/src/transport/TSocketClient.m
@@ -17,7 +17,12 @@
  * under the License.
  */
 #import "TSocketClient.h"
-#import <CFNetwork/CFSocketStream.h>
+
+#if !TARGET_OS_IPHONE
+#import <CoreServices/CoreServices.h>
+#else
+#import <CFNetwork/CFNetwork.h>
+#endif
 
 @implementation TSocketClient