Package: db5.3 / 5.3.28-12+deb9u1

006-mutex_alignment.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- db5.3.orig/src/dbinc/mutex_int.h
+++ db5.3/src/dbinc/mutex_int.h
@@ -850,7 +850,11 @@ typedef volatile 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
 
 /*