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
return 1;\r
}\r
\r
+#if WINVER < 0x600\r
int inet_pton(int af, const char *src, void *dst)\r
{\r
switch (af) {\r
return -1;\r
}\r
}\r
+#endif\r
\r
static const char *inet_ntop4(const void *src, char *dst, socklen_t cnt)\r
{\r
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
return NULL;\r
}\r
}\r
+#endif\r