Use better pre-processor defines for sparc64
Currently, jemalloc detects sparc64 targets by checking whether __sparc64__ is defined. However, this definition is used on BSD targets only. Linux targets define both __sparc__ and __arch64__ for sparc64. Since this also works on BSD, rather use __sparc__ and __arch64__ instead of __sparc64__ to detect sparc64 targets.
This commit is contained in:
parent
f1f7635731
commit
9389335b86
@ -76,7 +76,7 @@ mb_write(void)
|
|||||||
: "memory" /* Clobbers. */
|
: "memory" /* Clobbers. */
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
#elif defined(__sparc64__)
|
#elif defined(__sparc__) && defined(__arch64__)
|
||||||
JEMALLOC_INLINE void
|
JEMALLOC_INLINE void
|
||||||
mb_write(void)
|
mb_write(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user