diff options
| author | Peter Eisentraut | 2000-09-27 15:17:57 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2000-09-27 15:17:57 +0000 |
| commit | 664ce79dd84220afbf6c6b727c6280ec85148267 (patch) | |
| tree | fbed3a54d787b20b3aafc79980ec0bc7807effbb /src/interfaces | |
| parent | f5ab0169231ca69ff194fba191d98e0bcc3e8e72 (diff) | |
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/interfaces')
| -rw-r--r-- | src/interfaces/libpq/fe-connect.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 7349be66459..2296a2db6ce 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -8,17 +8,18 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.133 2000/08/30 14:54:23 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.134 2000/09/27 15:17:56 petere Exp $ * *------------------------------------------------------------------------- */ +#include "postgres.h" + #include <sys/types.h> #include <fcntl.h> #include <errno.h> #include <ctype.h> -#include "postgres.h" #include "libpq-fe.h" #include "libpq-int.h" #include "fe-auth.h" @@ -30,7 +31,9 @@ #include <unistd.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> #endif |
