diff options
author | Justin R. Wilson <wilsonj@objectcomputing.com> | 2019-02-25 09:34:03 -0600 |
---|---|---|
committer | Justin R. Wilson <wilsonj@objectcomputing.com> | 2019-02-25 09:34:03 -0600 |
commit | 74ee172e04a8ca83ac48fe6b48b6eadbf5754b3c (patch) | |
tree | 003fd253229ba4393b97d74b11b2671a16f8cc28 /ACE/tests | |
parent | 42bd1fcf1951530b8af007fb9084745fc38edd03 (diff) | |
download | ATCD-74ee172e04a8ca83ac48fe6b48b6eadbf5754b3c.tar.gz |
Cast iovec.iov_base to char* to handle certain platforms
Diffstat (limited to 'ACE/tests')
-rw-r--r-- | ACE/tests/SOCK_Dgram_Test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ACE/tests/SOCK_Dgram_Test.cpp b/ACE/tests/SOCK_Dgram_Test.cpp index 6474fce783b..80935a3e167 100644 --- a/ACE/tests/SOCK_Dgram_Test.cpp +++ b/ACE/tests/SOCK_Dgram_Test.cpp @@ -131,7 +131,8 @@ client (void *arg) ACE_INET_Addr to_addr = local_addr; iovec iov[1]; - iov[0].iov_base = buf; + // Some platforms define iov_base as char* instead of void*. + iov[0].iov_base = (char *)buf; iov[0].iov_len = 20; ssize_t rcv_cnt = cli_dgram.recv (iov, |