diff options
author | Joe Orton <jorton@apache.org> | 2003-10-01 13:19:43 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2003-10-01 13:19:43 +0000 |
commit | 96e30583f5737868942bb490fc9a6bcad4fc168e (patch) | |
tree | 201c8e4021d44ea9420b4daf69e54e10698fee43 /include/apr_network_io.h | |
parent | 57eab5a06c7e90e20ed7f7064f4881f9dd5e268e (diff) | |
download | apr-96e30583f5737868942bb490fc9a6bcad4fc168e.tar.gz |
* configure.in, build/apr_network.m4: Remove APR_INADDR_NONE
macro.
* include/apr.hw, include/apr.hnw, include/apr.h.in: Don't
define APR_INADDR_NONE here.
* include/apr_network_io.h: Define APR_INADDR_NONE here.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64671 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_network_io.h')
-rw-r--r-- | include/apr_network_io.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/apr_network_io.h b/include/apr_network_io.h index c66a76038..b38fc9dc2 100644 --- a/include/apr_network_io.h +++ b/include/apr_network_io.h @@ -157,6 +157,16 @@ struct in_addr { }; #endif +/** @def APR_INADDR_NONE + * Not all platforms have a real INADDR_NONE. This macro replaces + * INADDR_NONE on all platforms. + */ +#ifdef INADDR_NONE +#define APR_INADDR_NONE INADDR_NONE +#else +#define APR_INADDR_NONE ((unsigned int) 0xffffffff) +#endif + /** * @def APR_INET * Not all platforms have these defined, so we'll define them here |