summaryrefslogtreecommitdiff
path: root/ace/Handle_Set.i
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Handle_Set.i')
-rw-r--r--ace/Handle_Set.i4
1 files changed, 4 insertions, 0 deletions
diff --git a/ace/Handle_Set.i b/ace/Handle_Set.i
index e814973a1ed..0dea91af06e 100644
--- a/ace/Handle_Set.i
+++ b/ace/Handle_Set.i
@@ -111,9 +111,13 @@ ACE_Handle_Set::operator fd_set *()
{
ACE_TRACE ("ACE_Handle_Set::operator ACE_FD_SET_TYPE *");
+#if defined (ACE_WIN32)
+ return (fd_set*) &this->mask_;
+#else
if (this->size_ > 0)
return (fd_set*) &this->mask_;
else
return (fd_set*) NULL;
+#endif /* ACE_WIN32 */
}