Assorted fixes to make pg_upgrade build on MSVC.

Magnus Hagander <magnus@hagander.net>

Commit: 2b61b3e5074d7f55df82c199b87671334741b4e1
Author: Magnus Hagander <magnus@hagander.net>
Date: 2010-05-13T15:58:15Z
Releases: 9.0.0
Assorted fixes to make pg_upgrade build on MSVC.

* There is no chmod() on Windows.
* Must always use the 3-parameter version of open()
* There is no dynloader.h - but it also appears unnecessary on all platforms
* Don't include shlobj.h because it causes compile errors, and from what I can
  see it's not actually used. This may need to be added back for mingw
  and/or cygwin in the worst case.

Files

PathChange+/−
contrib/pg_upgrade/check.c modified +2 −0
contrib/pg_upgrade/exec.c modified +1 −1
contrib/pg_upgrade/page.c modified +0 −1
contrib/pg_upgrade/pg_upgrade.h modified +0 −3