* 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"
*
*
* 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 $
*
*-------------------------------------------------------------------------
*/
*
*/
-#include <unistd.h>
-
#include "postgres.h"
#include "libpq-fe.h"
#include "libpq-int.h"
#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 */
*
*
* 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>
#ifdef WIN32
#include "win32.h"
#else
+#include <unistd.h>
#include <netdb.h>
#include <netinet/tcp.h>
#endif
*
*
* 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>
#ifdef WIN32
#include "win32.h"
+#else
+#include <unistd.h>
#endif
*
*
* 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>
#ifdef WIN32
#include "win32.h"
#include "io.h"
+#else
+#include <unistd.h>
#endif
#include "libpq/libpq-fs.h" /* must come after sys/stat.h */
*
*
* 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>
#ifdef WIN32
#include "win32.h"
+#else
+#include <unistd.h>
#endif
#ifdef HAVE_SYS_SELECT_H
* 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"
#ifdef WIN32
#include "win32.h"
#else
+#include <unistd.h>
#include <sys/ioctl.h>
#endif