Commit 5c85257b authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo
Browse files

Merge pull request #193 from lamby/sparc-crash

Fix crash on SPARC due to improper alignment of allocated memory
parents 42c6a5da 5ae979bf
......@@ -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