aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/win32.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2007-01-11 02:42:31 +0000
committerBruce Momjian <bruce@momjian.us>2007-01-11 02:42:31 +0000
commita5ec2ec77abeb887402451e4fe34a2b54954bc56 (patch)
tree17329a7c27c6230fc08d817a3bc64d279bfe2afa /src/include/port/win32.h
parent945d0b4b09624db3bfa7b3e91c0625cf6a6b72b2 (diff)
downloadpostgresql-a5ec2ec77abeb887402451e4fe34a2b54954bc56.tar.gz
postgresql-a5ec2ec77abeb887402451e4fe34a2b54954bc56.zip
Allow Borland CC to compile libpq and psql.
Backpatch to 8.2.X. L Bayuk
Diffstat (limited to 'src/include/port/win32.h')
-rw-r--r--src/include/port/win32.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/port/win32.h b/src/include/port/win32.h
index eb086fc043f..22d71272d19 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.64 2007/01/02 21:25:50 momjian Exp $ */
+/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.65 2007/01/11 02:42:31 momjian Exp $ */
#if defined(_MSC_VER) || defined(__BORLANDC__)
#define WIN32_ONLY_COMPILER
@@ -17,7 +17,9 @@
#include <signal.h>
#include <errno.h>
#include <direct.h>
+#ifndef __BORLANDC__
#include <sys/utime.h> /* for non-unicode version */
+#endif
#undef near
/* Must be here to avoid conflicting with prototype in windows.h */
@@ -149,8 +151,10 @@ int semop(int semId, struct sembuf * sops, int flag);
#define SIGTTIN 21
#define SIGTTOU 22 /* Same as SIGABRT -- no problem, I hope */
#define SIGWINCH 28
+#ifndef __BORLANDC__
#define SIGUSR1 30
#define SIGUSR2 31
+#endif
struct timezone
{
@@ -259,8 +263,10 @@ extern void _dosmaperr(unsigned long);
/* Things that exist in MingW headers, but need to be added to MSVC */
#ifdef WIN32_ONLY_COMPILER
+#ifndef __BORLANDC__
typedef long ssize_t;
typedef unsigned short mode_t;
+#endif
/*
* Certain "standard edition" versions of MSVC throw a warning
@@ -271,6 +277,7 @@ typedef unsigned short mode_t;
#define inline __inline
#define __inline__ __inline
+#ifndef __BORLANDC__
#define _S_IRWXU (_S_IREAD | _S_IWRITE | _S_IEXEC)
#define _S_IXUSR _S_IEXEC
#define _S_IWUSR _S_IWRITE
@@ -280,6 +287,7 @@ typedef unsigned short mode_t;
#define S_IXUSR _S_IXUSR
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
+#endif
#define F_OK 0
#define W_OK 2