aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-10-02 20:42:20 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-10-02 20:42:20 +0000
commit0fadfc00add2b0f4b0438f554a5f10b3fd68d0e0 (patch)
treed7441f9ce0372ba2cac32cf3f4aa82c86265f163 /src
parent22ef6d06fc66776a55493198987ceb4601c818c3 (diff)
downloadpostgresql-0fadfc00add2b0f4b0438f554a5f10b3fd68d0e0.tar.gz
postgresql-0fadfc00add2b0f4b0438f554a5f10b3fd68d0e0.zip
Added NEED_UNION_SEMUN to config.h
Diffstat (limited to 'src')
-rw-r--r--src/include/config.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/config.h b/src/include/config.h
index ede1a8184d6..c1f9924ac58 100644
--- a/src/include/config.h
+++ b/src/include/config.h
@@ -15,6 +15,7 @@
# define NO_UNISTD_H
# define USES_WINSOCK
# define NOFILE 100
+# define NEED_UNION_SEMUN
#endif /* WIN32 */
#if defined(__FreeBSD__) || defined(__NetBSD__)
@@ -23,6 +24,7 @@
#if defined(bsdi)
# define USE_LIMITS_H
+# define NEED_UNION_SEMUN
#endif
#if defined(bsdi_2_1)
@@ -31,12 +33,30 @@
#if defined(aix)
# define NEED_SYS_SELECT_H
+# define NEED_UNION_SEMUN
#endif
#if defined(irix5)
# define NO_VFORK
#endif
+/*
+ * 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.
+ */
+#if defined(sequent) || \
+ defined(PORTNAME_alpha) || \
+ defined(PORTNAME_hpux) || \
+ defined(PORTNAME_dgux) || \
+ defined(PORTNAME_i386_solaris) || \
+ defined(PORTNAME_sparc_solaris) || \
+ defined(PORTNAME_ultrix4) || \
+ defined(PORTNAME_svr4) || \
+#define NEED_UNION_SEMUN
+#endif
+
/* Debug and various "defines" that should be documented */
/* found in function aclparse() in src/backend/utils/adt/acl.c */