aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/port/win32.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/port/win32.h b/src/include/port/win32.h
index 940933ce3c3..ae784c2dcb8 100644
--- a/src/include/port/win32.h
+++ b/src/include/port/win32.h
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.90 2009/09/07 11:22:12 mha Exp $ */
+/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.91 2010/01/02 22:47:37 mha Exp $ */
#if defined(_MSC_VER) || defined(__BORLANDC__)
#define WIN32_ONLY_COMPILER
@@ -303,7 +303,11 @@ extern void pgwin32_unsetenv(const char *);
/* Things that exist in MingW headers, but need to be added to MSVC & BCC */
#ifdef WIN32_ONLY_COMPILER
+#ifndef _WIN64
typedef long ssize_t;
+#else
+typedef __int64 ssize_t;
+#endif
#ifndef __BORLANDC__
typedef unsigned short mode_t;