]> granicus.if.org Git - postgresql/commitdiff
Make inclusion logic for sys/sem.h and sys/ipc.h consistent across all
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Oct 2001 18:16:35 +0000 (18:16 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Oct 2001 18:16:35 +0000 (18:16 +0000)
the files that need them.  Per trouble report from Teodor.

src/backend/storage/ipc/ipc.c
src/backend/storage/lmgr/proc.c
src/backend/storage/lmgr/spin.c

index 9d2b373a589919cc374ca6ee2dcada3223c63e81..0552ff288ea4223e6f5800a5973594d1a027dbb2 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.69 2001/09/29 04:02:23 tgl Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.70 2001/10/01 18:16:26 tgl Exp $
  *
  * NOTES
  *
  */
 #include "postgres.h"
 
-#include <sys/types.h>
-#include <sys/file.h>
 #include <errno.h>
 #include <signal.h>
 #include <unistd.h>
+#include <sys/file.h>
 
 #include "storage/ipc.h"
 /* In Ultrix, sem.h and shm.h must be included AFTER ipc.h */
 #include <kernel/OS.h>
 #endif
 
-#if defined(solaris_sparc)
-#include <sys/ipc.h>
-#endif
-
 #if defined(__darwin__)
 #include "port/darwin/sem.h"
 #endif
index a8f1b7bfbc6ae77bc7fdb55c6360abf6c16cefc3..5b88e22bd9b3d9fa8aeb369af4d27aaa6e242a81 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.111 2001/09/30 00:45:47 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.112 2001/10/01 18:16:32 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"
 
 #include <errno.h>
-#include <sys/time.h>
-#include <unistd.h>
 #include <signal.h>
-#include <sys/types.h>
+#include <unistd.h>
+#include <sys/time.h>
 
-#if defined(solaris_sparc) || defined(__CYGWIN__)
-#include <sys/ipc.h>
+#include "storage/ipc.h"
+/* In Ultrix, sem.h and shm.h must be included AFTER ipc.h */
+#ifdef HAVE_SYS_SEM_H
 #include <sys/sem.h>
 #endif
 
-#include "miscadmin.h"
-
 #if defined(__darwin__)
 #include "port/darwin/sem.h"
 #endif
 
-/* In Ultrix and QNX, sem.h must be included after ipc.h */
-#ifdef HAVE_SYS_SEM_H
-#include <sys/sem.h>
-#endif
-
+#include "miscadmin.h"
 #include "access/xact.h"
 #include "storage/proc.h"
 #include "storage/sinval.h"
index 454a28aca5e1f782e8b6d13b3249b57df1f5625a..6ace9cc11aab22eac36dfcc9d5c7a90696d22da8 100644 (file)
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/storage/lmgr/spin.c,v 1.3 2001/10/01 17:52:34 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/storage/lmgr/spin.c,v 1.4 2001/10/01 18:16:35 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"
 
 #include <errno.h>
+
+#include "storage/ipc.h"
+/* In Ultrix, sem.h and shm.h must be included AFTER ipc.h */
 #ifdef HAVE_SYS_SEM_H
-#include <sys/types.h>
 #include <sys/sem.h>
 #endif
 
+#if defined(__darwin__)
+#include "port/darwin/sem.h"
+#endif
+
 #include "storage/lwlock.h"
 #include "storage/proc.h"
 #include "storage/spin.h"