]> granicus.if.org Git - postgresql/commitdiff
Moved whether to define union semun from include/storage/ipc.h to
authorMarc G. Fournier <scrappy@hub.org>
Wed, 2 Oct 1996 20:40:17 +0000 (20:40 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Wed, 2 Oct 1996 20:40:17 +0000 (20:40 +0000)
a define in include/config.h

src/include/storage/ipc.h

index f134d032ee929f96eadbab7fab560a45cb2976d5..aebf51eb661d310f50765d6f3b6ebc0a10c4a906 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: ipc.h,v 1.1 1996/08/28 01:58:05 scrappy Exp $
+ * $Id: ipc.h,v 1.2 1996/10/02 20:40:17 scrappy Exp $
  *
  * NOTES
  *    This file is very architecture-specific.  This stuff should actually
@@ -109,24 +109,7 @@ extern int S_LOCK_FREE(slock_t *lock);
 
 #endif /* HAS_TEST_AND_SET */
 
-/*
- * On architectures for which we have not implemented spinlocks (or
- * cannot do so), we use System V semaphores.  We also use them for 
- * long locks.  For some reason union semun is never defined in the 
- * System V header files so we must do it ourselves.
- *
- * bsdi_2_1 does not need this
- */
-#if defined(sequent) || \
-    defined(PORTNAME_aix) || \
-    defined(PORTNAME_alpha) || \
-    defined(PORTNAME_bsdi) || \
-    defined(PORTNAME_hpux) || \
-    defined(PORTNAME_i386_solaris) || \
-    defined(PORTNAME_sparc_solaris) || \
-    defined(PORTNAME_ultrix4) || \
-    defined(PORTNAME_svr4) || \
-    defined(WIN32)
+#ifdef NEED_UNION_SEMUN
 union semun {
     int val;
     struct semid_ds *buf;