OSDN Git Service

Another compilation error has surfaced on Ultrix. In spin.c, sem.h must be
authorBruce Momjian <bruce@momjian.us>
Tue, 14 Jan 1997 01:53:11 +0000 (01:53 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 14 Jan 1997 01:53:11 +0000 (01:53 +0000)
included after storage/ipc.h like other similar cases that were changed
recently.

This one has popped up during the last few days.

My sources are sup'ed today, 13. jan 1996.

regards
Erik Bertelsen.

src/backend/storage/ipc/spin.c

index 6331f89..4246b36 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/spin.c,v 1.3 1997/01/10 20:18:35 momjian Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/spin.c,v 1.4 1997/01/14 01:53:11 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
  */
 #include <errno.h>
 #include "postgres.h"
-#ifndef HAS_TEST_AND_SET
-#include <sys/sem.h>
-#endif
 #include "storage/ipc.h"
 #include "storage/shmem.h"
 #include "storage/spin.h"
 #include "storage/proc.h"
 
+#ifndef HAS_TEST_AND_SET
+#include <sys/sem.h>
+#endif
+
 /* globals used in this file */
 IpcSemaphoreId SpinLockId;