Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 487466a

Browse files
committed
Fix palloc call from /port for Cygwin.
1 parent e515c3b commit 487466a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/utils/palloc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
2222
* Portions Copyright (c) 1994, Regents of the University of California
2323
*
24-
* $PostgreSQL: pgsql/src/include/utils/palloc.h,v 1.30 2004/08/29 04:13:11 momjian Exp $
24+
* $PostgreSQL: pgsql/src/include/utils/palloc.h,v 1.31 2004/09/10 15:23:51 momjian Exp $
2525
*
2626
*-------------------------------------------------------------------------
2727
*/
@@ -80,7 +80,7 @@ extern char *MemoryContextStrdup(MemoryContext context, const char *string);
8080

8181
#define pstrdup(str) MemoryContextStrdup(CurrentMemoryContext, (str))
8282

83-
#ifdef WIN32
83+
#if defined(WIN32) || defined(__CYGWIN__)
8484
extern void *pgport_palloc(Size sz);
8585
extern char *pgport_pstrdup(const char *str);
8686
extern void pgport_pfree(void *pointer);

0 commit comments

Comments
 (0)