]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
etc/inet: do not define inet_ntop and inet_pton on 2008 and beyond
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 20 Aug 2009 18:40:03 +0000 (18:40 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 20 Aug 2009 18:40:03 +0000 (18:40 +0000)
Server 2008 and beyond provide implementations of inet_pton and inte_ntop.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2375 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

branches/winverbs/etc/user/inet.c

index 47ff212ce34095f251e1725f362b2fc383123bf1..28df6a07ec52b06ee58326e077a2623904998e9c 100644 (file)
@@ -147,6 +147,7 @@ static int inet_pton6(const char *src, struct in6_addr *addr)
        return 1;\r
 }\r
 \r
+#if WINVER < 0x600\r
 int inet_pton(int af, const char *src, void *dst)\r
 {\r
        switch (af) {\r
@@ -158,6 +159,7 @@ int inet_pton(int af, const char *src, void *dst)
                return -1;\r
        }\r
 }\r
+#endif\r
 \r
 static const char *inet_ntop4(const void *src, char *dst, socklen_t cnt)\r
 {\r
@@ -203,6 +205,7 @@ static const char *inet_ntop6(const void *src, char *dst, socklen_t cnt)
        return dst;\r
 }\r
 \r
+#if WINVER < 0x600\r
 const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt)\r
 {\r
        switch (af) {\r
@@ -214,3 +217,4 @@ const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt)
                return NULL;\r
        }\r
 }\r
+#endif\r