Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5c85257b
Commit
5c85257b
authored
Nov 16, 2011
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/zmalloc.c
View file @
5c85257b
...
...
@@ -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))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment