]> granicus.if.org Git - postgresql/commitdiff
Enable WIN32 compilation of libpq.
authorBruce Momjian <bruce@momjian.us>
Mon, 19 Jul 1999 06:25:40 +0000 (06:25 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 19 Jul 1999 06:25:40 +0000 (06:25 +0000)
src/backend/utils/mb/common.c
src/interfaces/libpq/fe-auth.c
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-lobj.c
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/fe-print.c

index 0464f5cb872195ae8a45acc28d5fb9557eae348c..33ef6398283eb04552ea72e8c79beed91bd07cd9 100644 (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"
index f9732893b81452d432b3e5436e7567145d1e044c..f72f76b4080eefc467da9d118d480419431c2d02 100644 (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 */
index be88779e0c30d8599a7a5b53730e3d8e62767738..4edb4e8e5960c2c8d5a977585ee9137a642bd40b 100644 (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
index 2b6b1b9e26a00eb450b5963e47cf5caa2857609d..01613e0db84ca9797d78e2a168c884f534aa52b5 100644 (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
 
 
index cfd4a29ff42d6c0d985de5fc0d3a6361de5f5016..a105d0344b095b01554a2e719345d0705be23ee7 100644 (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 */
index 519bf1fbcf80a020d0d16518a4fc9046e211a877..63558ec33c79674458e079023cc00fb83d0d0db4 100644 (file)
  *
  *
  * 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
index 0d97a3a84db1244b56322e45dcda9edd9b346107..9151463fece11ae6567ea80bfb92280f9cca2677 100644 (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