summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ios/StreamTransceiver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/ios/StreamTransceiver.cpp')
-rw-r--r--cpp/src/Ice/ios/StreamTransceiver.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/Ice/ios/StreamTransceiver.cpp b/cpp/src/Ice/ios/StreamTransceiver.cpp
index fc42cb948ea..1405e476d39 100644
--- a/cpp/src/Ice/ios/StreamTransceiver.cpp
+++ b/cpp/src/Ice/ios/StreamTransceiver.cpp
@@ -2,6 +2,10 @@
// Copyright (c) ZeroC, Inc. All rights reserved.
//
+#include <Ice/Config.h>
+
+#if TARGET_OS_IPHONE != 0
+
#include "StreamTransceiver.h"
#include "StreamEndpointI.h"
@@ -547,3 +551,4 @@ IceObjC::StreamTransceiver::checkErrorStatus(CFWriteStreamRef writeStream, CFRea
}
throw CFNetworkException(file, line, static_cast<int>(CFErrorGetCode(err.get())), fromCFString(domain));
}
+#endif