THRIFT-762. Include CoreServices.h if we are not compiling on the iPhone.
authorAndrew McGeachie <geechorama@apache.org>
Wed, 28 Apr 2010 17:43:45 +0000 (17:43 +0000)
committerAndrew McGeachie <geechorama@apache.org>
Wed, 28 Apr 2010 17:43:45 +0000 (17:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@939024 13f79535-47bb-0310-9956-ffa450edef68

lib/cocoa/src/transport/TSocketClient.m

index b4183fb..74d4af9 100644 (file)
  * 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