Skip to content

Commit 7e33fae

Browse files
committed
Add NO_PGPORT defines to fix win32/cygwin builds for new target platform
build of zic.
1 parent 4f979e8 commit 7e33fae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/include/port.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2005, 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.77 2005/07/04 19:54:51 momjian Exp $
9+
* $PostgreSQL: pgsql/src/include/port.h,v 1.78 2005/07/05 17:24:30 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -178,7 +178,7 @@ extern int pclose_check(FILE *stream);
178178
#define TZNAME_GLOBAL _tzname
179179
#endif
180180

181-
#if defined(WIN32) || defined(__CYGWIN__)
181+
#if (defined(WIN32) || defined(__CYGWIN__)) && !defined(NO_PGPORT)
182182
/*
183183
* Win32 doesn't have reliable rename/unlink during concurrent access,
184184
* and we need special code to do symlinks.
@@ -204,11 +204,11 @@ extern int pgsymlink(const char *oldpath, const char *newpath);
204204
#define symlink(oldpath, newpath) pgsymlink(oldpath, newpath)
205205
#endif
206206

207-
#endif /* defined(WIN32) || defined(__CYGWIN__) */
207+
#endif /* defined(WIN32) || defined(__CYGWIN__) && !defined(NO_PGPORT) */
208208

209209
extern bool rmtree(char *path, bool rmtopdir);
210210

211-
#if defined(WIN32) && !defined(__CYGWIN__)
211+
#if defined(WIN32) && !defined(__CYGWIN__) && !defined(NO_PGPORT)
212212

213213
/* open() replacement to allow delete of held files and passing
214214
* of special options. */

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