From 3fd2044877e196706dd9104171a06d801bfa6080 Mon Sep 17 00:00:00 2001
From: Mathieu Rene <mrene@avgs.ca>
Date: Wed, 10 Jun 2009 00:48:35 +0000
Subject: [PATCH] Also export switch_inet_pton

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13741 d0543943-73ff-0310-b7d9-9358b9ac24b2
---
 src/include/switch_utils.h | 2 +-
 src/inet_pton.c            | 2 +-
 src/switch_utils.c         | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h
index 1b13777166..679944d65e 100644
--- a/src/include/switch_utils.h
+++ b/src/include/switch_utils.h
@@ -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
diff --git a/src/inet_pton.c b/src/inet_pton.c
index 33e55c1de8..501df0ff2f 100644
--- a/src/inet_pton.c
+++ b/src/inet_pton.c
@@ -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) {
diff --git a/src/switch_utils.c b/src/switch_utils.c
index 0f21c10802..de1bf0f87f 100644
--- a/src/switch_utils.c
+++ b/src/switch_utils.c
@@ -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);
 }