mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Add NO_PGPORT defines to fix win32/cygwin builds for new target platform
build of zic.
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/include/port.h,v 1.77 2005/07/04 19:54:51 momjian Exp $
|
* $PostgreSQL: pgsql/src/include/port.h,v 1.78 2005/07/05 17:24:30 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@@ -178,7 +178,7 @@ extern int pclose_check(FILE *stream);
|
|||||||
#define TZNAME_GLOBAL _tzname
|
#define TZNAME_GLOBAL _tzname
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WIN32) || defined(__CYGWIN__)
|
#if (defined(WIN32) || defined(__CYGWIN__)) && !defined(NO_PGPORT)
|
||||||
/*
|
/*
|
||||||
* Win32 doesn't have reliable rename/unlink during concurrent access,
|
* Win32 doesn't have reliable rename/unlink during concurrent access,
|
||||||
* and we need special code to do symlinks.
|
* and we need special code to do symlinks.
|
||||||
@@ -204,11 +204,11 @@ extern int pgsymlink(const char *oldpath, const char *newpath);
|
|||||||
#define symlink(oldpath, newpath) pgsymlink(oldpath, newpath)
|
#define symlink(oldpath, newpath) pgsymlink(oldpath, newpath)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* defined(WIN32) || defined(__CYGWIN__) */
|
#endif /* defined(WIN32) || defined(__CYGWIN__) && !defined(NO_PGPORT) */
|
||||||
|
|
||||||
extern bool rmtree(char *path, bool rmtopdir);
|
extern bool rmtree(char *path, bool rmtopdir);
|
||||||
|
|
||||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
#if defined(WIN32) && !defined(__CYGWIN__) && !defined(NO_PGPORT)
|
||||||
|
|
||||||
/* open() replacement to allow delete of held files and passing
|
/* open() replacement to allow delete of held files and passing
|
||||||
* of special options. */
|
* of special options. */
|
||||||
|
Reference in New Issue
Block a user