# HG changeset patch # User Jan Nieuwenhuizen # Date 1297164772 -3600 # Node ID 371a49e82001e9d949608552704981bd456f3880 # Parent c79ddba57147e158fa16188e332f34c30f92412b mingw::guile: update rename patch. diff -r c79ddba57147 -r 371a49e82001 patches/guile-1.9.15-mingw-rename.patch --- a/patches/guile-1.9.15-mingw-rename.patch Mon Feb 07 12:52:16 2011 +0100 +++ b/patches/guile-1.9.15-mingw-rename.patch Tue Feb 08 12:32:52 2011 +0100 @@ -25,8 +25,8 @@ + int rv; + struct stat stat; + -+ SCM_SYSCALL (rv = stat (newname, &stat)); -+ if (rv == 0) ++ SCM_SYSCALL (rv = !stat (newname, &stat)); ++ if (rv != 0) + SCM_SYSCALL (rv = unlink (newname)); + if (rv == 0) + rv = rename (oldname, newname);