diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-02-06 06:27:00 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-02-06 06:27:00 +0000 |
commit | 912cc4acf7410cc4d2e353dd12ed465058728bc2 (patch) | |
tree | 8cf6445938d7afd4ae2895ee28449d7e36d44ae2 /ace/SOCK_Dgram.cpp | |
parent | 3152ea6d7cc3d068072ef24b17b2789f5ef7d41f (diff) | |
download | ATCD-912cc4acf7410cc4d2e353dd12ed465058728bc2.tar.gz |
fpp
Diffstat (limited to 'ace/SOCK_Dgram.cpp')
-rw-r--r-- | ace/SOCK_Dgram.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ace/SOCK_Dgram.cpp b/ace/SOCK_Dgram.cpp index b0c96326370..94238b50ca5 100644 --- a/ace/SOCK_Dgram.cpp +++ b/ace/SOCK_Dgram.cpp @@ -122,7 +122,11 @@ ACE_SOCK_Dgram::send (const iovec iov[], send_msg.msg_iov = (iovec *) iov; send_msg.msg_iovlen = n; - send_msg.msg_name = (caddr_t) addr.get_addr (); // caddr_t is POSIX for char * +#if defined (ACE_HAS_SOCKADDR_MSG_NAME) + send_msg.msg_name = (struct sockaddr *) addr.get_addr (); +#else + send_msg.msg_name = (char *) addr.get_addr (); +#endif /* ACE_HAS_SOCKADDR_MSG_NAME */ send_msg.msg_namelen = addr.get_size (); send_msg.msg_accrights = 0; send_msg.msg_accrightslen = 0; @@ -143,7 +147,11 @@ ACE_SOCK_Dgram::recv (iovec iov[], recv_msg.msg_iov = (iovec *) iov; recv_msg.msg_iovlen = n; - recv_msg.msg_name = (caddr_t) addr.get_addr (); // caddr_t is POSIX for char * +#if defined (ACE_HAS_SOCKADDR_MSG_NAME) + recv_msg.msg_name = (struct sockaddr *) addr.get_addr (); +#else + recv_msg.msg_name = (char *) addr.get_addr (); +#endif /* ACE_HAS_SOCKADDR_MSG_NAME */ recv_msg.msg_namelen = addr.get_size (); recv_msg.msg_accrights = 0; recv_msg.msg_accrightslen = 0; |