From b3fe6bcafe8f54ca354495a01eeff1b0a5353892 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 18 Oct 2004 19:08:58 +0000 Subject: [PATCH] Remove use of "miscadmin.h" in port C files and remove test for frontend in miscadmin.h. --- src/include/miscadmin.h | 4 +--- src/port/dirmod.c | 4 +--- src/port/exec.c | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index 14507d729b..1bf019b557 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -13,7 +13,7 @@ * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.170 2004/10/18 16:24:40 momjian Exp $ + * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.171 2004/10/18 19:08:57 momjian Exp $ * * NOTES * some of the information in this file should be moved to other files. @@ -120,9 +120,7 @@ do { \ /* * from utils/init/globals.c */ -#ifndef WIN32_CLIENT_ONLY extern pid_t PostmasterPid; -#endif extern bool IsPostmasterEnvironment; extern bool IsUnderPostmaster; diff --git a/src/port/dirmod.c b/src/port/dirmod.c index 6035b81bc5..d325abe89f 100644 --- a/src/port/dirmod.c +++ b/src/port/dirmod.c @@ -10,7 +10,7 @@ * Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me. * * IDENTIFICATION - * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.30 2004/10/17 23:53:30 momjian Exp $ + * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.31 2004/10/18 19:08:58 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -37,8 +37,6 @@ #if defined(WIN32) || defined(__CYGWIN__) -#include "miscadmin.h" - #ifndef __CYGWIN__ #include #else diff --git a/src/port/exec.c b/src/port/exec.c index 650fc72476..8d32754c8e 100644 --- a/src/port/exec.c +++ b/src/port/exec.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/port/exec.c,v 1.29 2004/10/07 15:21:57 momjian Exp $ + * $PostgreSQL: pgsql/src/port/exec.c,v 1.30 2004/10/18 19:08:58 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -26,8 +26,6 @@ #include #endif -#include "miscadmin.h" - #define _(x) gettext(x) #ifndef S_IRUSR /* XXX [TRH] should be in a header */