Skip to content

Commit 4f7d3e0

Browse files
committed
Win32 compile fix for misc_utils.
Claudio Natoli
1 parent bf06825 commit 4f7d3e0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

contrib/miscutil/misc_utils.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#ifndef MISC_UTILS_H
22
#define MISC_UTILS_H
33

4+
#ifdef max
5+
#undef max
6+
#endif
7+
#ifdef min
8+
#undef min
9+
#endif
10+
411
int backend_pid(void);
512
int unlisten(char *relname);
613
int max(int x, int y);

src/include/port/win32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.32 2004/09/09 00:59:44 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.33 2004/09/14 03:50:17 tgl Exp $ */
22

33
/* undefine and redefine after #include */
44
#undef mkdir
@@ -166,6 +166,7 @@ void _dosmaperr(unsigned long);
166166
#define SIGPIPE 13
167167
#define SIGALRM 14
168168
#define SIGSTOP 17
169+
#define SIGTSTP 18
169170
#define SIGCONT 19
170171
#define SIGCHLD 20
171172
#define SIGTTIN 21

0 commit comments

Comments
 (0)