diff options
author | brane <brane@13f79535-47bb-0310-9956-ffa450edef68> | 2003-11-04 01:36:59 +0000 |
---|---|---|
committer | brane <brane@13f79535-47bb-0310-9956-ffa450edef68> | 2003-11-04 01:36:59 +0000 |
commit | 1427b51ed7020cd225dbd495af797a24d3c2f183 (patch) | |
tree | a73901163dbb400e2ed82a2733e26c48b93ef002 /include | |
parent | 6efdd43154fcd32bdde962767b47fe567ff3528b (diff) | |
download | libapr-1427b51ed7020cd225dbd495af797a24d3c2f183.tar.gz |
Fix the Win32 build.
* include/arch/win32/apr_arch_networkio.h (apr_set_option): Act on sockets,
not masks. Analogous to rev 1.5 of the Unix version.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64718 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r-- | include/arch/win32/apr_arch_networkio.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/arch/win32/apr_arch_networkio.h b/include/arch/win32/apr_arch_networkio.h index d2b7d9417..2897e0d17 100644 --- a/include/arch/win32/apr_arch_networkio.h +++ b/include/arch/win32/apr_arch_networkio.h @@ -101,12 +101,12 @@ void apr_sockaddr_vars_set(apr_sockaddr_t *, int, apr_port_t); #define apr_is_option_set(skt, option) \ (((skt)->options & (option)) == (option)) -#define apr_set_option(mask, option, on) \ +#define apr_set_option(skt, option, on) \ do { \ if (on) \ - *(mask) |= (option); \ + (skt)->options |= (option); \ else \ - *(mask) &= ~(option); \ + (skt)->options &= ~(option); \ } while (0) #endif /* ! NETWORK_IO_H */ |