OSF1 V3.2 does not have <machines/builtins.h>, which declares the RDF_BASE
authorwtc
Fri, 22 May 1998 00:59:33 +0000
changeset 123 3a600888c05272e9c3c2dfe37381e3a9156959ad
parent 118 77e109f455cbe492b9531f4747eb5a815ddeedec
child 124 53553797d7d25947a5f84281bceb6c0e1deb4cb4
child 125 6e64e18dc005ef0b7a612118d7bf9a1b35ebfc2b
push idunknown
push userunknown
push dateunknown
OSF1 V3.2 does not have <machines/builtins.h>, which declares the atomic routines. Thanks to Andrew Cassin <acassin@cs.mu.oz.au> for this patch.
pr/include/md/_osf1.h
--- a/pr/include/md/_osf1.h
+++ b/pr/include/md/_osf1.h
@@ -154,16 +154,20 @@ extern int __select (int, fd_set *, fd_s
 
 #include <sys/poll.h>
 #define _MD_POLL __poll
 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___ */