summaryrefslogtreecommitdiff
path: root/src/include/port.h
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2011-04-09 17:59:27 -0400
committerAndrew Dunstan <andrew@dunslane.net>2011-04-09 17:59:27 -0400
commit2ea865de5660f75f44f6b1ba78090e41e070cb4c (patch)
tree6eb67948302b7235400b04fb2a85790005498c8b /src/include/port.h
parent00bf707113a297aa85c38beda8fb1247fe4bd304 (diff)
Backport changes to allow building with MinGW 64 bit compiler.
These changes have been in HEAD for some time with no ill effect. They are only being backported to 9.0, as the required WINNT version was not high enough before that.
Diffstat (limited to 'src/include/port.h')
-rw-r--r--src/include/port.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/port.h b/src/include/port.h
index 65b80ef5134..2794002ca9e 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -333,8 +333,12 @@ extern FILE *pgwin32_fopen(const char *, const char *);
#define fopen(a,b) pgwin32_fopen(a,b)
#endif
+#ifndef popen
#define popen(a,b) _popen(a,b)
+#endif
+#ifndef pclose
#define pclose(a) _pclose(a)
+#endif
/* New versions of MingW have gettimeofday, old mingw and msvc don't */
#ifndef HAVE_GETTIMEOFDAY