Skip to content

Commit 4c29e21

Browse files
committed
Adjustments for Win32-specific rename code, and add include file.
1 parent 98a5284 commit 4c29e21

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/backend/commands/user.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $PostgreSQL: pgsql/src/backend/commands/user.c,v 1.134 2004/02/02 00:17:21 momjian Exp $
9+
* $PostgreSQL: pgsql/src/backend/commands/user.c,v 1.135 2004/02/02 16:37:46 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -140,7 +140,7 @@ write_group_file(Relation grel)
140140
tempname = (char *) palloc(bufsize);
141141
snprintf(tempname, bufsize, "%s.%d", filename, MyProcPid);
142142
#if defined(WIN32) || defined(CYGWIN)
143-
filename = repalloc(filename, strlen(filename) + 1 + strlen(".new");
143+
filename = repalloc(filename, strlen(filename) + 1 + strlen(".new"));
144144
strcat(filename, ".new");
145145
#endif
146146

@@ -291,7 +291,7 @@ write_user_file(Relation urel)
291291
tempname = (char *) palloc(bufsize);
292292
snprintf(tempname, bufsize, "%s.%d", filename, MyProcPid);
293293
#if defined(WIN32) || defined(CYGWIN)
294-
filename = repalloc(filename, strlen(filename) + 1 + strlen(".new");
294+
filename = repalloc(filename, strlen(filename) + 1 + strlen(".new"));
295295
strcat(filename, ".new");
296296
#endif
297297

src/backend/postmaster/pgstat.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* Copyright (c) 2001-2003, PostgreSQL Global Development Group
1515
*
16-
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.57 2004/01/28 21:02:40 tgl Exp $
16+
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.58 2004/02/02 16:37:46 momjian Exp $
1717
* ----------
1818
*/
1919
#include "postgres.h"
@@ -45,6 +45,7 @@
4545
#include "storage/backendid.h"
4646
#include "storage/ipc.h"
4747
#include "storage/pg_shmem.h"
48+
#include "tcop/tcopprot.h"
4849
#include "utils/rel.h"
4950
#include "utils/hsearch.h"
5051
#include "utils/ps_status.h"

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