summaryrefslogtreecommitdiff
path: root/ace/OS_NS_sys_socket.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ace/OS_NS_sys_socket.inl')
-rw-r--r--ace/OS_NS_sys_socket.inl10
1 files changed, 4 insertions, 6 deletions
diff --git a/ace/OS_NS_sys_socket.inl b/ace/OS_NS_sys_socket.inl
index 3d3f9fbd199..59930fb6319 100644
--- a/ace/OS_NS_sys_socket.inl
+++ b/ace/OS_NS_sys_socket.inl
@@ -531,13 +531,11 @@ ACE_OS::sendmsg (ACE_HANDLE handle,
}
else
return (ssize_t) bytes_sent;
-# elif defined (ACE_HAS_NONCONST_SENDMSG)
- ACE_SOCKCALL_RETURN (::sendmsg (handle,
- const_cast<struct msghdr *>(msg),
- flags), int, -1);
+# elif defined (ACE_PSOS)
+ ACE_SOCKCALL_RETURN (::sendmsg (handle, (struct msghdr *) msg, flags), int, -1);
# else
- ACE_SOCKCALL_RETURN (::sendmsg (handle, msg, flags), int, -1);
-# endif
+ ACE_SOCKCALL_RETURN (::sendmsg (handle, (ACE_SENDMSG_TYPE *) msg, flags), int, -1);
+# endif /* ACE_PSOS */
#else
ACE_UNUSED_ARG (flags);
ACE_UNUSED_ARG (msg);