summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/SocketProxy.h
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2009-10-21 21:53:53 +0000
committerAndrew Stitcher <astitcher@apache.org>2009-10-21 21:53:53 +0000
commitbc24dd44e6eb170a428d419087a4d528cb11558c (patch)
treeef935cab03ae2678c6c30fa4e6e5c41a7d1713cb /qpid/cpp/src/tests/SocketProxy.h
parent965b958161f4480a3626f5d50c3f6cc0d8517c27 (diff)
downloadqpid-python-bc24dd44e6eb170a428d419087a4d528cb11558c.tar.gz
Tidied up dependencies in IOHandle so that it is no longer
dependent on the windows implementation classes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@828230 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/SocketProxy.h')
-rw-r--r--qpid/cpp/src/tests/SocketProxy.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/SocketProxy.h b/qpid/cpp/src/tests/SocketProxy.h
index 9df32a1336..df243cb42a 100644
--- a/qpid/cpp/src/tests/SocketProxy.h
+++ b/qpid/cpp/src/tests/SocketProxy.h
@@ -47,7 +47,11 @@ class SocketProxy : private qpid::sys::Runnable
// Need a Socket we can get the fd from
class LowSocket : public qpid::sys::Socket {
public:
+#ifdef _WIN32
+ FdType getFd() { return toSocketHandle(*this); }
+#else
FdType getFd() { return toFd(impl); }
+#endif
};
public: