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.
Showing
- contrib/pg_upgrade/check.c 2 additions, 0 deletionscontrib/pg_upgrade/check.c
- contrib/pg_upgrade/exec.c 1 addition, 1 deletioncontrib/pg_upgrade/exec.c
- contrib/pg_upgrade/page.c 0 additions, 1 deletioncontrib/pg_upgrade/page.c
- contrib/pg_upgrade/pg_upgrade.h 0 additions, 3 deletionscontrib/pg_upgrade/pg_upgrade.h
Loading
Please register or sign in to comment