From 6fef4c1e5bf73ad76e7cdcfb65540f1308045339 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 2 Oct 2017 17:32:11 -0700 Subject: fixes #5 Address properties Added TCP socket address properties on pipes. This adds the plumbing for the various platform specifics, and includes both v4 and v6 handling. We've included a TCPv6 test as well. --- src/core/strs.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/strs.c') diff --git a/src/core/strs.c b/src/core/strs.c index 08338499..6cee605b 100644 --- a/src/core/strs.c +++ b/src/core/strs.c @@ -21,7 +21,11 @@ char * nni_strdup(const char *src) { #ifdef NNG_HAVE_STRDUP +#ifdef _WIN32 + return (_strdup(src)); +#else return (strdup(src)); +#endif #else char * dst; size_t len = strlen(src); -- cgit v1.2.3-70-g09d2