Bugzilla bug #5358: temporary fix for the build problem on Solaris/x86. NSPRPUB_RELEASE_3_1_BRANCH
authorwtc%netscape.com
Wed, 21 Apr 1999 21:07:20 +0000
branchNSPRPUB_RELEASE_3_1_BRANCH
changeset 563 0ebfbf01d77643d9abb38c916fb5d5ad7560f2a0
parent 561 c1ee8e208316af3a1e0e29f122c072ab0edb7ca5
child 579 9e5b1d6c21b017b12953a362428cde800b745a32
push idunknown
push userunknown
push dateunknown
bugs5358
Bugzilla bug #5358: temporary fix for the build problem on Solaris/x86. We don't have an assembly language implementation of atomic stacks for Solaris/x86 yet. Thanks to Justin A. Kolodziej <4wg7kolodzie@marquette.edu> for reporting the bug. (NSPRPUB_RELEASE_3_1_BRANCH)
pr/include/md/_solaris.h
--- a/pr/include/md/_solaris.h
+++ b/pr/include/md/_solaris.h
@@ -43,18 +43,24 @@
 #define	HAVE_DLL
 #define	USE_DLFCN
 #define NEED_STRFTIME_LOCK
 
 #ifdef _PR_LOCAL_THREADS_ONLY
 #undef _PR_HAVE_ATOMIC_OPS
 #else
 #define _PR_HAVE_ATOMIC_OPS
+/*
+ * We have assembly language implementation of atomic
+ * stacks for the sparc architecture only.
+ */
+#ifdef sparc
 #define _PR_HAVE_ATOMIC_CAS
 #endif
+#endif
 
 #define _PR_POLL_AVAILABLE
 #define _PR_USE_POLL
 #define _PR_STAT_HAS_ST_ATIM
 
 #include "prinrval.h"
 PR_EXTERN(PRIntervalTime) _MD_Solaris_GetInterval(void);
 #define _MD_GET_INTERVAL                  _MD_Solaris_GetInterval