return (handle);
}
+#if HAVE_CREATEHARDLINKW
static size_t
wequallen(const wchar_t *s1, const wchar_t *s2)
{
else
return (0);
}
+#endif
/* Make a link to src called dst. */
static int
retval = -1;
goto exit;
}
+#if HAVE_CREATEHARDLINKW
if (!sym && canHardLinkW(wsrc, wdst))
res = CreateHardLinkW(wdst, wsrc, NULL);
else
+#endif
res = CopyFileW(wsrc, wdst, FALSE);
} else {
/* wsrc does not exist; try src prepend it with the dirname of wdst */
retval = -1;
goto exit;
}
+#if HAVE_CREATEHARDLINKW
if (!sym && canHardLinkW(wnewsrc, wdst))
res = CreateHardLinkW(wdst, wnewsrc, NULL);
else
+#endif
res = CopyFileW(wnewsrc, wdst, FALSE);
free (wnewsrc);
}