Also export switch_inet_pton
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13741 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
f7f48fef3c
commit
3fd2044877
|
@ -561,7 +561,7 @@ SWITCH_DECLARE(switch_bool_t) switch_network_list_validate_ip_token(switch_netwo
|
|||
|
||||
#define switch_test_subnet(_ip, _net, _mask) (_mask ? ((_net & _mask) == (_ip & _mask)) : _net ? _net == _ip : 1)
|
||||
|
||||
int switch_inet_pton(int af, const char *src, void *dst);
|
||||
SWITCH_DECLARE(int) switch_inet_pton(int af, const char *src, void *dst)
|
||||
|
||||
/* malloc or DIE macros */
|
||||
#ifdef NDEBUG
|
||||
|
|
|
@ -66,7 +66,7 @@ static int inet_pton6(const char *src, unsigned char *dst);
|
|||
* author:
|
||||
* Paul Vixie, 1996.
|
||||
*/
|
||||
int
|
||||
SWITCH_DECLARE(int)
|
||||
switch_inet_pton(int af, const char *src, void *dst)
|
||||
{
|
||||
switch (af) {
|
||||
|
|
|
@ -57,7 +57,7 @@ struct switch_network_list {
|
|||
};
|
||||
|
||||
#ifndef WIN32
|
||||
int switch_inet_pton(int af, const char *src, void *dst)
|
||||
SWITCH_DECLARE(int) switch_inet_pton(int af, const char *src, void *dst)
|
||||
{
|
||||
return inet_pton(af, src, dst);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue