summaryrefslogtreecommitdiff
path: root/ace/OS_NS_sys_socket.inl
diff options
context:
space:
mode:
authorjtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-08-06 15:52:11 +0000
committerjtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-08-06 15:52:11 +0000
commitb67f808bab0e55ac8ffd7d04168ed3afd888a28f (patch)
tree4454506c819eec4311b5d502095c978a2c5c4079 /ace/OS_NS_sys_socket.inl
parent6ea813c02439fff52ae8eec5c950809a33e0110e (diff)
downloadATCD-b67f808bab0e55ac8ffd7d04168ed3afd888a28f.tar.gz
ChangeLogTag: Fri Aug 6 08:17:23 2004 J.T. Conklin <jtc@acorntoolworks.com>
Diffstat (limited to 'ace/OS_NS_sys_socket.inl')
-rw-r--r--ace/OS_NS_sys_socket.inl10
1 files changed, 6 insertions, 4 deletions
diff --git a/ace/OS_NS_sys_socket.inl b/ace/OS_NS_sys_socket.inl
index 59930fb6319..3d3f9fbd199 100644
--- a/ace/OS_NS_sys_socket.inl
+++ b/ace/OS_NS_sys_socket.inl
@@ -531,11 +531,13 @@ ACE_OS::sendmsg (ACE_HANDLE handle,
}
else
return (ssize_t) bytes_sent;
-# elif defined (ACE_PSOS)
- ACE_SOCKCALL_RETURN (::sendmsg (handle, (struct msghdr *) msg, flags), int, -1);
+# elif defined (ACE_HAS_NONCONST_SENDMSG)
+ ACE_SOCKCALL_RETURN (::sendmsg (handle,
+ const_cast<struct msghdr *>(msg),
+ flags), int, -1);
# else
- ACE_SOCKCALL_RETURN (::sendmsg (handle, (ACE_SENDMSG_TYPE *) msg, flags), int, -1);
-# endif /* ACE_PSOS */
+ ACE_SOCKCALL_RETURN (::sendmsg (handle, msg, flags), int, -1);
+# endif
#else
ACE_UNUSED_ARG (flags);
ACE_UNUSED_ARG (msg);