Enable WIN32 compilation of libpq.

This commit is contained in:
Bruce Momjian 1999-07-19 06:25:40 +00:00
parent bf98a4656b
commit e259780b13
7 changed files with 18 additions and 15 deletions

View File

@ -2,14 +2,15 @@
* This file contains some public functions
* usable for both the backend and the frontend.
* Tatsuo Ishii
* $Id: common.c,v 1.6 1999/07/19 02:27:07 momjian Exp $ */
* $Id: common.c,v 1.7 1999/07/19 06:25:38 momjian Exp $ */
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#ifdef WIN32
#include "win32.h"
#else
#include <unistd.h>
#endif
#include "mb/pg_wchar.h"

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.31 1999/07/19 02:27:14 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.32 1999/07/19 06:25:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -25,8 +25,6 @@
*
*/
#include <unistd.h>
#include "postgres.h"
#include "libpq-fe.h"
#include "libpq-int.h"
@ -35,6 +33,7 @@
#ifdef WIN32
#include "win32.h"
#else
#include <unistd.h>
#include <sys/param.h> /* for MAXHOSTNAMELEN on most */
#ifndef MAXHOSTNAMELEN
#include <netdb.h> /* for MAXHOSTNAMELEN on some */

View File

@ -7,12 +7,11 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.100 1999/07/19 02:27:15 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.101 1999/07/19 06:25:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <ctype.h>
@ -25,6 +24,7 @@
#ifdef WIN32
#include "win32.h"
#else
#include <unistd.h>
#include <netdb.h>
#include <netinet/tcp.h>
#endif

View File

@ -7,11 +7,10 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.83 1999/07/19 02:27:15 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.84 1999/07/19 06:25:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <unistd.h>
#include <errno.h>
#include <ctype.h>
@ -21,6 +20,8 @@
#ifdef WIN32
#include "win32.h"
#else
#include <unistd.h>
#endif

View File

@ -7,12 +7,11 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.23 1999/07/19 02:45:43 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.24 1999/07/19 06:25:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
@ -23,6 +22,8 @@
#ifdef WIN32
#include "win32.h"
#include "io.h"
#else
#include <unistd.h>
#endif
#include "libpq/libpq-fs.h" /* must come after sys/stat.h */

View File

@ -24,12 +24,11 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.27 1999/07/19 02:27:15 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.28 1999/07/19 06:25:40 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <unistd.h>
#include <sys/time.h>
#include <errno.h>
#include <signal.h>
@ -42,6 +41,8 @@
#ifdef WIN32
#include "win32.h"
#else
#include <unistd.h>
#endif
#ifdef HAVE_SYS_SELECT_H

View File

@ -9,11 +9,10 @@
* didn't really belong there.
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.25 1999/07/19 02:27:16 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.26 1999/07/19 06:25:40 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <unistd.h>
#include <signal.h>
#include "postgres.h"
@ -24,6 +23,7 @@
#ifdef WIN32
#include "win32.h"
#else
#include <unistd.h>
#include <sys/ioctl.h>
#endif