]> granicus.if.org Git - postgresql/commitdiff
Change the way ipc.h is included because sys/ipc.h on Ultrix is broken.
authorBryan Henderson <bryanh@giraffe.netgate.net>
Wed, 8 Jan 1997 08:33:07 +0000 (08:33 +0000)
committerBryan Henderson <bryanh@giraffe.netgate.net>
Wed, 8 Jan 1997 08:33:07 +0000 (08:33 +0000)
src/backend/storage/ipc/ipc.c
src/backend/storage/ipc/ipci.c
src/backend/storage/ipc/sinval.c
src/backend/storage/lmgr/proc.c
src/backend/utils/init/postinit.c

index 9f74d848c470bffb9a1931b97c047b8014b20274..b02beba9ec2763860e77b9662f189c2469258df1 100644 (file)
@@ -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
  *
 #include <string.h>
 #include <errno.h>
 
-/* XXX - the following  dependency should be moved into the defaults.mk file */
-#ifndef        _IPC_
-#define _IPC_
-#include <sys/ipc.h>
-#include <sys/sem.h>
-#include <sys/shm.h>
-#endif
 
 #include "postgres.h"
 #include "storage/ipc.h"
+/* In Ultrix, sem.h and shm.h must be included AFTER ipc.h */
+#include <sys/sem.h>
+#include <sys/shm.h>
 #include "utils/memutils.h"
 
 #if defined(sparc_solaris)
index 2527daed7f8301e01c6b7a6c485cd5afbfa1e8ec..f949041f44d94b2a3f65c4de43e8c3989c175756 100644 (file)
@@ -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 <string.h>
 #include <sys/types.h>
-#include <sys/ipc.h>
 
 #include "postgres.h"
 
index bd4079efd671d893ee46129bfdb426c19ccc6ee5..e5aef6dd99be4eeecb1d84ce99bd5adf37d0e853 100644 (file)
@@ -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 <sys/types.h>
-#include <sys/ipc.h>
 
 #include "postgres.h"
 
index 3888fdcd9e5c63e2490979ad58ce3685f2b60891..37466ba39e2c9ac27c2008b1155ea33bac48c149 100644 (file)
@@ -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 <sys/time.h>
 #ifndef WIN32
@@ -55,8 +55,6 @@
 #include <string.h>
 #include <signal.h>
 #include <sys/types.h>
-#include <sys/ipc.h>
-#include <sys/sem.h>
 
 #if defined(sparc_solaris)
 #include <sys/ipc.h>
@@ -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 <sys/sem.h>
 #include "storage/buf.h"       
 #include "storage/lock.h"
 #include "storage/lmgr.h"
index de2768d8da6bc4b6e9fa5998d94adb693468e484..178d45ff835517b0771b3ad9b365dcaafa06486f 100644 (file)
@@ -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
 #include <sys/file.h>
 #include <sys/stat.h>
 #include <sys/types.h>
-#include <sys/ipc.h>
 #include <math.h>
 #include <unistd.h>
 
 #include "postgres.h"
 #include "version.h"
 
+#include <storage/ipc.h>
 #include <storage/backendid.h>
 #include <storage/buf_internals.h>
 #include <storage/smgr.h>