[Pkg-db-devel] Bug#498455: sparc mutex alignment problem
Clint Adams
schizo at debian.org
Wed Sep 10 05:41:45 UTC 2008
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
/*
More information about the Pkg-db-devel
mailing list