mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-02 19:36:52 +02:00
libpgport routines need nonstandard palloc to work on Windows.
Propagate hack that's in dirmod.c to copydir.c.
This commit is contained in:
parent
b72fe49b9c
commit
a17dbec893
@ -11,7 +11,7 @@
|
|||||||
* as a service.
|
* as a service.
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/port/copydir.c,v 1.13 2005/09/02 18:55:32 tgl Exp $
|
* $PostgreSQL: pgsql/src/port/copydir.c,v 1.14 2005/09/03 15:55:00 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -24,6 +24,17 @@
|
|||||||
|
|
||||||
#include "storage/fd.h"
|
#include "storage/fd.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* On Windows, call non-macro versions of palloc; we can't reference
|
||||||
|
* CurrentMemoryContext in this file because of DLLIMPORT conflict.
|
||||||
|
*/
|
||||||
|
#if defined(WIN32) || defined(__CYGWIN__)
|
||||||
|
#undef palloc
|
||||||
|
#undef pstrdup
|
||||||
|
#define palloc(sz) pgport_palloc(sz)
|
||||||
|
#define pstrdup(str) pgport_pstrdup(str)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static void copy_file(char *fromfile, char *tofile);
|
static void copy_file(char *fromfile, char *tofile);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user