OSDN Git Service

Assorted fixes to make pg_upgrade build on MSVC.
authorMagnus Hagander <magnus@hagander.net>
Thu, 13 May 2010 15:58:15 +0000 (15:58 +0000)
committerMagnus Hagander <magnus@hagander.net>
Thu, 13 May 2010 15:58:15 +0000 (15:58 +0000)
commit2b61b3e5074d7f55df82c199b87671334741b4e1
tree5afb639ce05cadba2fe2fe3aa13cd65fe8d237cd
parentf1ac08daeef0b9417b2dff801c10fcc027697453
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.
contrib/pg_upgrade/check.c
contrib/pg_upgrade/exec.c
contrib/pg_upgrade/page.c
contrib/pg_upgrade/pg_upgrade.h