summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc <devnull@localhost>1998-05-22 00:59:33 +0000
committerwtc <devnull@localhost>1998-05-22 00:59:33 +0000
commit43227de99c4817b9299ddf884c24997e5d719523 (patch)
tree5822c7f29a2f407878a772872e404ad79196c9a5
parent98e68c05c6f31070c8cea868172b8feeaabe07be (diff)
downloadnspr-hg-43227de99c4817b9299ddf884c24997e5d719523.tar.gz
OSF1 V3.2 does not have <machines/builtins.h>, which declares theRDF_BASE
atomic routines. Thanks to Andrew Cassin <acassin@cs.mu.oz.au> for this patch.
-rw-r--r--pr/include/md/_osf1.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pr/include/md/_osf1.h b/pr/include/md/_osf1.h
index 82249e1a..473dee28 100644
--- a/pr/include/md/_osf1.h
+++ b/pr/include/md/_osf1.h
@@ -159,11 +159,15 @@ extern int __poll(struct pollfd filedes[], unsigned int nfds, int timeout);
/*
* Atomic operations
*/
+
+/* builtins.h is not available for OSF1 V3.2. */
+#ifndef OSF1V3
#include <machine/builtins.h>
#define _PR_HAVE_ATOMIC_OPS
#define _MD_INIT_ATOMIC()
#define _MD_ATOMIC_INCREMENT(val) (__ATOMIC_INCREMENT_LONG(val) + 1)
#define _MD_ATOMIC_DECREMENT(val) (__ATOMIC_DECREMENT_LONG(val) - 1)
#define _MD_ATOMIC_SET(val, newval) __ATOMIC_EXCH_LONG(val, newval)
+#endif /* OSF1V3 */
#endif /* nspr_osf1_defs_h___ */