From: Bryan Henderson Date: Wed, 8 Jan 1997 08:33:07 +0000 (+0000) Subject: Change the way ipc.h is included because sys/ipc.h on Ultrix is broken. X-Git-Tag: REL6_1~774 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e98c40129beed4b504b48e83dae2962b6fcbacb;p=postgresql Change the way ipc.h is included because sys/ipc.h on Ultrix is broken. --- diff --git a/src/backend/storage/ipc/ipc.c b/src/backend/storage/ipc/ipc.c index 9f74d848c4..b02beba9ec 100644 --- a/src/backend/storage/ipc/ipc.c +++ b/src/backend/storage/ipc/ipc.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.9 1996/11/10 03:02:21 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.10 1997/01/08 08:32:01 bryanh Exp $ * * NOTES * @@ -30,16 +30,12 @@ #include #include -/* XXX - the following dependency should be moved into the defaults.mk file */ -#ifndef _IPC_ -#define _IPC_ -#include -#include -#include -#endif #include "postgres.h" #include "storage/ipc.h" +/* In Ultrix, sem.h and shm.h must be included AFTER ipc.h */ +#include +#include #include "utils/memutils.h" #if defined(sparc_solaris) diff --git a/src/backend/storage/ipc/ipci.c b/src/backend/storage/ipc/ipci.c index 2527daed7f..f949041f44 100644 --- a/src/backend/storage/ipc/ipci.c +++ b/src/backend/storage/ipc/ipci.c @@ -7,13 +7,12 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.4 1996/11/08 05:58:33 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.5 1997/01/08 08:32:03 bryanh Exp $ * *------------------------------------------------------------------------- */ #include #include -#include #include "postgres.h" diff --git a/src/backend/storage/ipc/sinval.c b/src/backend/storage/ipc/sinval.c index bd4079efd6..e5aef6dd99 100644 --- a/src/backend/storage/ipc/sinval.c +++ b/src/backend/storage/ipc/sinval.c @@ -7,14 +7,13 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinval.c,v 1.5 1996/11/10 03:02:30 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinval.c,v 1.6 1997/01/08 08:32:04 bryanh Exp $ * *------------------------------------------------------------------------- */ /* #define INVALIDDEBUG 1 */ #include -#include #include "postgres.h" diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index 3888fdcd9e..37466ba39e 100644 --- a/src/backend/storage/lmgr/proc.c +++ b/src/backend/storage/lmgr/proc.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.12 1996/12/26 22:07:28 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.13 1997/01/08 08:32:17 bryanh Exp $ * *------------------------------------------------------------------------- */ @@ -46,7 +46,7 @@ * This is so that we can support more backends. (system-wide semaphore * sets run out pretty fast.) -ay 4/95 * - * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.12 1996/12/26 22:07:28 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.13 1997/01/08 08:32:17 bryanh Exp $ */ #include #ifndef WIN32 @@ -55,8 +55,6 @@ #include #include #include -#include -#include #if defined(sparc_solaris) #include @@ -70,6 +68,9 @@ #include "access/xact.h" #include "utils/hsearch.h" +#include "storage/ipc.h" +/* In Ultrix, sem.h must be included after ipc.h */ +#include #include "storage/buf.h" #include "storage/lock.h" #include "storage/lmgr.h" diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index de2768d8da..178d45ff83 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.6 1996/11/12 06:46:42 bryanh Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.7 1997/01/08 08:33:07 bryanh Exp $ * * NOTES * InitPostgres() is the function called from PostgresMain @@ -32,13 +32,13 @@ #include #include #include -#include #include #include #include "postgres.h" #include "version.h" +#include #include #include #include