Skip to content

Commit a16ffee

Browse files
committed
Fixes for BCC 5.5 compile of libpq. Backpatch to 8.1.X.
Mark Morgan Lloyd
1 parent 732a1fd commit a16ffee

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/include/port.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $PostgreSQL: pgsql/src/include/port.h,v 1.90 2006/03/05 15:58:53 momjian Exp $
9+
* $PostgreSQL: pgsql/src/include/port.h,v 1.91 2006/04/24 04:03:24 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -255,10 +255,8 @@ extern int win32_open(const char *, int,...);
255255
#define open(a,b,...) win32_open(a,b,##__VA_ARGS__)
256256
#endif
257257

258-
#ifndef __BORLANDC__
259258
#define popen(a,b) _popen(a,b)
260259
#define pclose(a) _pclose(a)
261-
#endif
262260

263261
/* Missing rand functions */
264262
extern long lrand48(void);

src/interfaces/libpq/bcc32.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ config: ..\..\include\pg_config.h pg_config_paths.h
141141

142142
# Have to use \# so # isn't treated as a comment, but MSVC doesn't like this
143143
pg_config_paths.h: bcc32.mak
144-
echo \#define SYSCONFDIR "" > pg_config_paths.h
144+
echo \#define SYSCONFDIR \"\" > pg_config_paths.h
145145

146146
"$(OUTDIR)" :
147147
@if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy