Fix Win32/Cygwin problems:

Bruce Momjian <bruce@momjian.us>

Commit: d8f75d4131589f45e77189e93190a5d5f04814a7
Author: Bruce Momjian <bruce@momjian.us>
Date: 2006-06-25T00:18:24Z
Releases: 8.2.0
Fix Win32/Cygwin problems:

After updating to the latest cvs, and also building most of the addons
(like PLs), the following patch is neededf for win32 + Visual C++.

* Switch to use the new win32 semaphore code
* Rename win32_open to pgwin32_open. win32_open collides with symbols
defined in Perl. MingW didn't detect ig, MSVC did. And it's a bit too
generic a name to export globally, imho...
* Python defines some partially broken #pragmas in the headers when
doing a debug build. Workaround.

Magnus Hagander

Files

PathChange+/−
src/include/pg_config.h.win32 modified +4 −1
src/include/port.h modified +3 −3
src/pl/plpython/plpython.c modified +9 −1
src/port/open.c modified +3 −3