From: Marc G. Fournier Date: Wed, 2 Oct 1996 20:42:20 +0000 (+0000) Subject: Added NEED_UNION_SEMUN to config.h X-Git-Tag: REL2_0~527 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0fadfc00add2b0f4b0438f554a5f10b3fd68d0e0;p=postgresql Added NEED_UNION_SEMUN to config.h --- diff --git a/src/include/config.h b/src/include/config.h index ede1a8184d..c1f9924ac5 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 */