Here the patch to /src/interfaces/libpq/bcc32.mak attached improving
Borland C++ Compiler compatibility.
Issues described here:
http://pgolub.wordpress.com/2009/04/13/building-postgresql-client-library-using-borland-c-compiler-bcc-under-winxp/
This patch changes order of include folders placing
..\..\include\port\win32_msvc on the first place. Thus
src\include\port\win32_msvc\dirent.h is used instead of incompatible
$(BCB)\include\dirent.h
--
Nullus est in vitae sensus ipsa vera est sensus.