summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-15 21:52:21 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-15 21:52:21 +0000
commita9f8d6abb1112f81723bb368ed63cc86445e3227 (patch)
tree33e326a6764426e64430b79d1cb1fa673f6ddce9
parente185eeee27d8ba74af068211da8b1e117a87f9a4 (diff)
downloadATCD-a9f8d6abb1112f81723bb368ed63cc86445e3227.tar.gz
Convert <optval> to an int on Win32.
-rw-r--r--ace/SOCK_Dgram_Mcast.i6
1 files changed, 6 insertions, 0 deletions
diff --git a/ace/SOCK_Dgram_Mcast.i b/ace/SOCK_Dgram_Mcast.i
index b2e5406497b..1d0e6e8004e 100644
--- a/ace/SOCK_Dgram_Mcast.i
+++ b/ace/SOCK_Dgram_Mcast.i
@@ -13,8 +13,14 @@ ACE_SOCK_Dgram_Mcast::set_option (int option,
char optval)
{
ACE_TRACE ("ACE_SOCK_Dgram_Mcast::set_option");
+#if !defined (ACE_WIN32)
return this->ACE_SOCK::set_option (IPPROTO_IP, option,
&optval, sizeof (char));
+#else
+ int sock_opt = optval;
+ return this->ACE_SOCK::set_option (IPPROTO_IP, option,
+ &sock_opt, sizeof (sock_opt));
+#endif /* !ACE_WIN32 */
}
ASYS_INLINE ssize_t