diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-07-18 21:56:49 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-07-18 21:56:49 +0000 |
commit | 8633a9c9a2e24adbef41939c18ee9b207abf77ac (patch) | |
tree | 99ee8799a4af71d1331db06c061471034f014ffb /ace/SOCK_Dgram_Mcast.i | |
parent | bcc8f6bd3b5666f07e63c0a578300a386c9905be (diff) | |
download | ATCD-8633a9c9a2e24adbef41939c18ee9b207abf77ac.tar.gz |
ChangeLogTag:Sun Jul 18 14:30:54 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'ace/SOCK_Dgram_Mcast.i')
-rw-r--r-- | ace/SOCK_Dgram_Mcast.i | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/ace/SOCK_Dgram_Mcast.i b/ace/SOCK_Dgram_Mcast.i index 1d0e6e8004e..ddbbe3cfc4f 100644 --- a/ace/SOCK_Dgram_Mcast.i +++ b/ace/SOCK_Dgram_Mcast.i @@ -1,8 +1,6 @@ /* -*- C++ -*- */ // $Id$ -// SOCK_Dgram_Mcast.i - ASYS_INLINE ACE_SOCK_Dgram_Mcast::~ACE_SOCK_Dgram_Mcast (void) { @@ -13,13 +11,17 @@ 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 +#if defined (ACE_WIN32) int sock_opt = optval; - return this->ACE_SOCK::set_option (IPPROTO_IP, option, - &sock_opt, sizeof (sock_opt)); + return this->ACE_SOCK::set_option (IPPROTO_IP, + option, + &sock_opt, + sizeof (sock_opt)); +#else + return this->ACE_SOCK::set_option (IPPROTO_IP, + option, + &optval, + sizeof (optval)); #endif /* !ACE_WIN32 */ } |