Changes required to build on Windows Disable newly added code that calls chown function Index: patch-2.6.1-2-g2c4e3ec/src/patch.c =================================================================== --- patch-2.6.1-2-g2c4e3ec.orig/src/patch.c 2010-01-01 15:01:10.000000000 +0000 +++ patch-2.6.1-2-g2c4e3ec/src/patch.c 2010-01-03 00:15:36.000000000 +0000 @@ -413,11 +413,13 @@ main (int argc, char **argv) if (chmod (outname, instat.st_mode) != 0) pfatal ("Can't set permissions on file %s", quotearg (outname)); +#ifndef _WIN32 if (geteuid () != instat.st_gid) { /* Fails if we are not in group instat.st_gid. */ chown (outname, -1, instat.st_gid); } +#endif /* FIXME: There may be other attributes to preserve. */ } }