summaryrefslogtreecommitdiff
path: root/include/arch/win32
diff options
context:
space:
mode:
authorstoddard <stoddard@13f79535-47bb-0310-9956-ffa450edef68>2002-06-06 02:58:16 +0000
committerstoddard <stoddard@13f79535-47bb-0310-9956-ffa450edef68>2002-06-06 02:58:16 +0000
commit2302a67c7b4252a6a886207099840bbcfc1f0248 (patch)
tree7cbca08e49887000a3e5001b0b2be3e43b03e2a6 /include/arch/win32
parentcb353372d34b9bb558a7968b4b090aca05371acb (diff)
downloadlibapr-2302a67c7b4252a6a886207099840bbcfc1f0248.tar.gz
win32 now passes testsockopt. Merge the Netware codepath
in apr_getsockopt with the win32 codepath. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63469 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/arch/win32')
-rw-r--r--include/arch/win32/networkio.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/arch/win32/networkio.h b/include/arch/win32/networkio.h
index 1ee3d54a0..6c351b510 100644
--- a/include/arch/win32/networkio.h
+++ b/include/arch/win32/networkio.h
@@ -97,5 +97,14 @@ const char *apr_inet_ntop(int af, const void *src, char *dst, apr_size_t size);
int apr_inet_pton(int af, const char *src, void *dst);
void apr_sockaddr_vars_set(apr_sockaddr_t *, int, apr_port_t);
+#define apr_is_option_set(mask, option) ((mask & option) ==option)
+#define apr_set_option(mask, option, on) \
+ do { \
+ if (on) \
+ *mask |= option; \
+ else \
+ *mask &= ~option; \
+ } while (0)
+
#endif /* ! NETWORK_IO_H */