summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2003-06-12 08:15:29 +0000
committerBruce Momjian <bruce@momjian.us>2003-06-12 08:15:29 +0000
commitb14295cfe4f2a738a0b023d10bc508da2c458bdb (patch)
tree372f60ae84e507d582a83600a700304b462f94da /src/include
parentdc4ee8a833c09e883f1966d1698792b627649740 (diff)
downloadpostgresql-b14295cfe4f2a738a0b023d10bc508da2c458bdb.tar.gz
Attached is the complete diff against current CVS.
Compiles on BCC 5.5 and VC++ 6.0 (with warnings). Karl Waclawek
Diffstat (limited to 'src/include')
-rw-r--r--src/include/c.h4
-rw-r--r--src/include/getaddrinfo.h4
-rw-r--r--src/include/pg_config.h.win324
-rw-r--r--src/include/port.h4
4 files changed, 12 insertions, 4 deletions
diff --git a/src/include/c.h b/src/include/c.h
index d17827775f..3f6c23c6d1 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: c.h,v 1.149 2003/06/12 08:11:07 momjian Exp $
+ * $Id: c.h,v 1.150 2003/06/12 08:15:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -73,7 +73,7 @@
#include <SupportDefs.h>
#endif
-#ifdef WIN32
+#if defined(WIN32) && !defined(_MSC_VER) && !defined(__BORLANDC__)
/* We have to redefine some system functions after they are included above */
#include "pg_config_os.h"
#endif
diff --git a/src/include/getaddrinfo.h b/src/include/getaddrinfo.h
index 2afec4d5ca..ced6df07e9 100644
--- a/src/include/getaddrinfo.h
+++ b/src/include/getaddrinfo.h
@@ -16,15 +16,17 @@
*
* Copyright (c) 2003, PostgreSQL Global Development Group
*
- * $Id: getaddrinfo.h,v 1.5 2003/06/12 08:11:07 momjian Exp $
+ * $Id: getaddrinfo.h,v 1.6 2003/06/12 08:15:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef GETADDRINFO_H
#define GETADDRINFO_H
+#if !defined(_MSC_VER) && !defined(__BORLANDC__)
#include <sys/socket.h>
#include <netdb.h>
+#endif
#ifndef HAVE_STRUCT_ADDRINFO
diff --git a/src/include/pg_config.h.win32 b/src/include/pg_config.h.win32
index aaeecf5957..7835ef8d9f 100644
--- a/src/include/pg_config.h.win32
+++ b/src/include/pg_config.h.win32
@@ -21,6 +21,10 @@
#define HAVE_ATEXIT
#define HAVE_MEMMOVE
+#ifdef __BORLANDC__
+#define HAVE_RANDOM
+#endif
+
/* use _snprintf instead of snprintf */
#define HAVE_DECL_SNPRINTF 1
#define snprintf _snprintf
diff --git a/src/include/port.h b/src/include/port.h
index 2fd6de606c..783d41cc0e 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: port.h,v 1.5 2003/06/12 08:11:07 momjian Exp $
+ * $Id: port.h,v 1.6 2003/06/12 08:15:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -76,8 +76,10 @@ extern double rint(double x);
#endif
#ifndef HAVE_INET_ATON
+#if !defined(_MSC_VER) && !defined(__BORLANDC__)
# include <netinet/in.h>
# include <arpa/inet.h>
+#endif
extern int inet_aton(const char *cp, struct in_addr * addr);
#endif