From e44c93180172b892993fcb77370c5546606b34ab Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 19 Jul 1999 02:27:16 +0000 Subject: Re-add getopt.h check, remove NT-specific tests for it. --- src/backend/bootstrap/bootstrap.c | 9 ++++----- src/backend/postmaster/postmaster.c | 36 +++++++++++++++--------------------- src/backend/tcop/postgres.c | 6 +++--- src/backend/utils/mb/common.c | 10 +++------- 4 files changed, 25 insertions(+), 36 deletions(-) (limited to 'src/backend') diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index fc357d87a79..8db37d0a081 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -7,7 +7,7 @@ * Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.65 1999/07/17 20:16:47 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.66 1999/07/19 02:27:04 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -15,14 +15,13 @@ #include #include #include -#ifdef __CYGWIN32__ -#include -#endif #define BOOTSTRAP_INCLUDE /* mask out stuff in tcop/tcopprot.h */ #include "postgres.h" - +#ifdef HAVE_GETOPT_H +#include +#endif #include "access/genam.h" #include "access/heapam.h" diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 15a21773e96..c21611cc1a3 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.114 1999/07/17 20:17:32 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.115 1999/07/19 02:27:06 momjian Exp $ * * NOTES * @@ -32,46 +32,40 @@ * *------------------------------------------------------------------------- */ -#include "postgres.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include + +#include "postgres.h" /* moved here to prevent double define */ #ifdef HAVE_NETDB_H #include #endif - #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN 256 #endif -#if !defined(NO_UNISTD_H) -#include -#endif /* !NO_UNISTD_H */ - -#include -#include - - #ifdef HAVE_LIMITS_H #include #else #include #endif -#include -#include -#include -#include -#include -#include - -#include -#include #ifdef HAVE_SYS_SELECT_H #include #endif -#ifdef __CYGWIN32__ +#ifdef HAVE_GETOPT_H #include "getopt.h" #endif diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 6dfd32f6b10..ea357ba613a 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.125 1999/07/17 20:17:51 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.126 1999/07/19 02:27:06 momjian Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -39,7 +39,7 @@ #include #include #include -#ifdef __CYGWIN32__ +#ifdef HAVE_GETOPT_H #include #endif @@ -1494,7 +1494,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[]) if (!IsUnderPostmaster) { puts("\nPOSTGRES backend interactive interface "); - puts("$Revision: 1.125 $ $Date: 1999/07/17 20:17:51 $\n"); + puts("$Revision: 1.126 $ $Date: 1999/07/19 02:27:06 $\n"); } /* ---------------- diff --git a/src/backend/utils/mb/common.c b/src/backend/utils/mb/common.c index cab36c7b4c6..0464f5cb872 100644 --- a/src/backend/utils/mb/common.c +++ b/src/backend/utils/mb/common.c @@ -2,19 +2,15 @@ * This file contains some public functions * usable for both the backend and the frontend. * Tatsuo Ishii - * $Id: common.c,v 1.5 1999/05/25 16:12:41 momjian Exp $ */ + * $Id: common.c,v 1.6 1999/07/19 02:27:07 momjian Exp $ */ #include +#include +#include #ifdef WIN32 #include "win32.h" -#else -#if !defined(NO_UNISTD_H) -#include #endif -#endif - -#include #include "mb/pg_wchar.h" -- cgit v1.2.3