| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | --- a/src/dbinc/mutex_int.h |
| 2 | +++ b/src/dbinc/mutex_int.h | ||||
| 3 | @@ -850,7 +850,11 @@ typedef volatile unsigned char tsl_t; | ||||
| 4 | * alignment locally. | ||||
| 5 | */ | ||||
| 6 | #ifndef MUTEX_ALIGN | ||||
| 7 | -#define MUTEX_ALIGN sizeof(unsigned int) | ||||
| 8 | +# if defined(__linux__) && defined(__sparc__) | ||||
| 9 | +# define MUTEX_ALIGN 8 | ||||
| 10 | +# else | ||||
| 11 | +# define MUTEX_ALIGN sizeof(unsigned int) | ||||
| 12 | +# endif | ||||
| 13 | #endif | ||||
| 14 | |||||
| 15 | /* | ||||