diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-07-16 09:44:44 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-07-16 09:44:44 +0200 |
commit | c27cd5515034f0baff249e0976ab27f70ddbe44b (patch) | |
tree | 4035cca0ce4c93920ed751bd358a6687dcb7e18c /ACE/ace/SOCK_Dgram.cpp | |
parent | 185dd520d88bb29eaae7a62d69b70c46331abba9 (diff) | |
download | ATCD-c27cd5515034f0baff249e0976ab27f70ddbe44b.tar.gz |
All platforms that define ACE_LACKS_IOVEC has an unsigned iov_len, not only Embarcadero C++ Builder/Linux/RTEMS
* ACE/ace/SOCK_Dgram.cpp:
Diffstat (limited to 'ACE/ace/SOCK_Dgram.cpp')
-rw-r--r-- | ACE/ace/SOCK_Dgram.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ACE/ace/SOCK_Dgram.cpp b/ACE/ace/SOCK_Dgram.cpp index eb01d7c0cf7..5180362bea6 100644 --- a/ACE/ace/SOCK_Dgram.cpp +++ b/ACE/ace/SOCK_Dgram.cpp @@ -406,7 +406,6 @@ ACE_SOCK_Dgram::recv (iovec iov[], // Send an iovec of size N to ADDR as a datagram (connectionless // version). - ssize_t ACE_SOCK_Dgram::send (const iovec iov[], int n, @@ -420,8 +419,8 @@ ACE_SOCK_Dgram::send (const iovec iov[], // Determine the total length of all the buffers in <iov>. for (i = 0; i < n; i++) -#if ! (defined(__BORLANDC__) || defined(ACE_LINUX) || defined(ACE_HAS_RTEMS)) - // The iov_len is unsigned on Linux, RTEMS and with Borland. If we go +#if ! (defined(ACE_LACKS_IOVEC) || defined(ACE_LINUX) || defined(ACE_HAS_RTEMS)) + // The iov_len is unsigned on Linux, RTEMS and when using the ACE iovec struct. If we go // ahead and try the if, it will emit a warning. if (iov[i].iov_len < 0) return -1; @@ -481,8 +480,8 @@ ACE_SOCK_Dgram::recv (iovec iov[], ACE_UNUSED_ARG (to_addr); for (i = 0; i < n; i++) -#if ! (defined(__BORLANDC__) || defined(ACE_LINUX) || defined(ACE_HAS_RTEMS)) - // The iov_len is unsigned on Linux, RTEMS and with Borland. If we go +#if ! (defined(ACE_LACKS_IOVEC) || defined(ACE_LINUX) || defined(ACE_HAS_RTEMS)) + // The iov_len is unsigned on Linux, RTEMS and when using the ACE iovec struct. If we go // ahead and try the if, it will emit a warning. if (iov[i].iov_len < 0) return -1; |