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

Commit a2190c9

Browse files
committed
Prevent unlink/rename Win32 mapping on frontends.
1 parent 97e2446 commit a2190c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
1313
* Portions Copyright (c) 1994, Regents of the University of California
1414
*
15-
* $Id: c.h,v 1.140 2003/04/25 01:24:00 momjian Exp $
15+
* $Id: c.h,v 1.141 2003/04/25 16:18:40 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -714,7 +714,7 @@ off_t ftello(FILE *stream);
714714
/*
715715
* Win32 doesn't have reliable rename/unlink during concurrent access
716716
*/
717-
#ifdef WIN32
717+
#if defined(WIN32) && !defined(FRONTEND)
718718
int pgrename(const char *from, const char *to);
719719
int pgunlink(const char *path);
720720
#define rename(path) pgrename(path)

0 commit comments

Comments
 (0)