]> granicus.if.org Git - postgresql/commitdiff
Tweak zic.c to compile cleanly on MSVC: use CopyFile instead of
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 24 Oct 2006 15:11:03 +0000 (15:11 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 24 Oct 2006 15:11:03 +0000 (15:11 +0000)
CopyFileEx.  This avoids a warning about the function not being
present on older Windows versions.  Magnus Hagander

src/timezone/zic.c

index f949f0878429ee7f6b498ec2561ee0be9ecedef4..0f272e8d6e5d0b63b034add24f49eff88df18909 100644 (file)
@@ -3,7 +3,7 @@
  * 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/timezone/zic.c,v 1.18 2006/10/19 20:38:48 tgl Exp $
+ *       $PostgreSQL: pgsql/src/timezone/zic.c,v 1.19 2006/10/24 15:11:03 tgl Exp $
  */
 
 #include "postgres.h"
@@ -2383,7 +2383,7 @@ eitol(int i)
 int
 link(const char *oldpath, const char *newpath)
 {
-       if (!CopyFileEx(oldpath, newpath, NULL, NULL, FALSE, 0))
+       if (!CopyFile(oldpath, newpath, FALSE))
                return -1;
        return 0;
 }