summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2000-09-27 15:17:57 +0000
committerPeter Eisentraut <peter_e@gmx.net>2000-09-27 15:17:57 +0000
commit664ce79dd84220afbf6c6b727c6280ec85148267 (patch)
treefbed3a54d787b20b3aafc79980ec0bc7807effbb /src/backend
parentf5ab0169231ca69ff194fba191d98e0bcc3e8e72 (diff)
downloadpostgresql-664ce79dd84220afbf6c6b727c6280ec85148267.tar.gz
Fixes for Cygwin, with help from Pete Forman <gsez020@kryten.bedford.waii.com>.
Update the installation instructions (formerly misnamed "FAQ"), add configure checks for some headers rather than having users copy stubs manually (ugh!). Use Autoconf check for exe extension. This also avoids inheriting the value of $(X) from the environment.
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/libpq/pqcomm.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c
index 0f3b3d4295..d0b10414fd 100644
--- a/src/backend/libpq/pqcomm.c
+++ b/src/backend/libpq/pqcomm.c
@@ -29,7 +29,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pqcomm.c,v 1.100 2000/07/08 03:04:40 tgl Exp $
+ * $Id: pqcomm.c,v 1.101 2000/09/27 15:17:54 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -58,6 +58,8 @@
*
*------------------------
*/
+#include "postgres.h"
+
#include <signal.h>
#include <errno.h>
#include <fcntl.h>
@@ -67,12 +69,12 @@
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
-#include <netinet/tcp.h>
+#ifdef HAVE_NETINET_TCP_H
+# include <netinet/tcp.h>
+#endif
#include <arpa/inet.h>
#include <sys/file.h>
-#include "postgres.h"
-
#include "libpq/libpq.h"
#include "miscadmin.h"