Re: [BUGS] BUG #3769: Fail to make bcc32.mak for libpq - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: [BUGS] BUG #3769: Fail to make bcc32.mak for libpq
Date
Msg-id 200711240133.lAO1XYt24204@momjian.us
Whole thread Raw
List pgsql-patches
I have applied the attached patch to fix your ssize_t problem under
Borland CC.  Plesae test.  I am now looking at your linking issue.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://postgres.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +
Index: src/include/port/win32.h
===================================================================
RCS file: /cvsroot/pgsql/src/include/port/win32.h,v
retrieving revision 1.79
diff -c -c -r1.79 win32.h
*** src/include/port/win32.h    15 Nov 2007 21:14:44 -0000    1.79
--- src/include/port/win32.h    24 Nov 2007 01:29:47 -0000
***************
*** 280,287 ****

  /* Things that exist in MingW headers, but need to be added to MSVC */
  #ifdef WIN32_ONLY_COMPILER
- #ifndef __BORLANDC__
  typedef long ssize_t;
  typedef unsigned short mode_t;
  #endif

--- 280,287 ----

  /* Things that exist in MingW headers, but need to be added to MSVC */
  #ifdef WIN32_ONLY_COMPILER
  typedef long ssize_t;
+ #ifndef __BORLANDC__
  typedef unsigned short mode_t;
  #endif


pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Fixes for MONEY type using locale
Next
From: "D'Arcy J.M. Cain"
Date:
Subject: Re: Fixes for MONEY type using locale