Package: db
Version: 4.7.25-3
Severity: serious
Tags: patch

This should stop the env007 test from bus erroring on sparc.  Untested.

diff --git a/dbinc/mutex_int.h b/dbinc/mutex_int.h
index 3633dfd..731ab79 100644
--- a/dbinc/mutex_int.h
+++ b/dbinc/mutex_int.h
@@ -756,7 +756,11 @@ typedef unsigned char tsl_t;
  * alignment locally.
  */
 #ifndef        MUTEX_ALIGN
-#define        MUTEX_ALIGN     sizeof(unsigned int)
+# if defined(__linux__) && defined(__sparc__)
+# define       MUTEX_ALIGN     8
+# else
+# define       MUTEX_ALIGN     sizeof(unsigned int)
+# endif
 #endif
 
 /*



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to