Mon Dec  4 16:20:40 GMT Standard Time 2006  Simon Marlow <[EMAIL PROTECTED]>
  * Hard link support on Windows
  This works only on NTFS filesystems.  Also it requires Windows 2000 or
  later; this may or may not be acceptable, I'll leave that up to the
  darcs maintainers to decide.
New patches:

[Hard link support on Windows
Simon Marlow <[EMAIL PROTECTED]>**20061204162040
 This works only on NTFS filesystems.  Also it requires Windows 2000 or
 later; this may or may not be acceptable, I'll leave that up to the
 darcs maintainers to decide.
] {
hunk ./maybe_relink.c 31
+
+// Hard link support on Windows requires Windows 2000 or greater.
+// Therefore this rules out Windows 95/98/ME.
+#define _WIN32_WINNT 0x0500
+#include <windows.h>
hunk ./maybe_relink.c 39
-    return 0;
+    BOOL result;
+    result = CreateHardLink(src, dst, NULL);
+    if (!result)
+        return 0;
+    else
+        return -2;
}

Context:

[TAG 1.0.9rc2
Tommy Pettersson <[EMAIL PROTECTED]>**20061116140351] 
Patch bundle hash:
64791a5196ce126177af14504ad47edb77baec9d
_______________________________________________
darcs-devel mailing list
darcs-devel@darcs.net
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel

Reply via email to