Mercurial > hg > orthanc
view Resources/ThirdParty/patch/fix-sources.patch @ 1545:33d34bc4ac15
fix msvc warnings
author | jodogne |
---|---|
date | Thu, 13 Aug 2015 21:02:31 +0200 |
parents | 61caa39d7426 |
children |
line wrap: on
line source
--- patch-2.6.1.orig/src/patch.c 2009-12-30 13:56:30.000000000 +0100 +++ patch-2.6.1/src/patch.c 2015-08-13 16:46:23.886129878 +0200 @@ -415,8 +415,10 @@ quotearg (outname)); if (geteuid () != instat.st_gid) { +#if !defined(_WIN32) /* 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. */ }