You need to sign in or sign up before continuing.
Commit cec6b048 authored by Chris Lamb's avatar Chris Lamb Committed by antirez
Browse files

Fix crash on SPARC due to improper alignment of allocated memory



I believe that you should be able to drop 'defined(__sun)' completely
from this clause, as Solaris on x86 hardware probably does not have
strict alignment requirements, but I don't have a way to test that.

Thanks to Jurij Smakov <jurij@wooyd.org>.
Signed-off-by: default avatarChris Lamb <lamby@debian.org>
parent beb4bacc
......@@ -38,7 +38,7 @@
#ifdef HAVE_MALLOC_SIZE
#define PREFIX_SIZE (0)
#else
#if defined(__sun)
#if defined(__sun) || defined(__sparc) || defined(__sparc__)
#define PREFIX_SIZE (sizeof(long long))
#else
#define PREFIX_SIZE (sizeof(size_t))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment