summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2016-12-21 08:38:54 (GMT)
committerJason Evans <jasone@canonware.com>2017-01-11 01:39:54 (GMT)
commit77de5f27d848414a6d26e86e2812339ffe1062d3 (patch)
tree9a57353c965324d307c62b67661ea29b245b1e51 /include
parentedf1bafb2b36ef4e8a2ef1ac19a4f76e5bc42528 (diff)
downloadjemalloc-77de5f27d848414a6d26e86e2812339ffe1062d3.zip
jemalloc-77de5f27d848414a6d26e86e2812339ffe1062d3.tar.gz
jemalloc-77de5f27d848414a6d26e86e2812339ffe1062d3.tar.bz2
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.
Diffstat (limited to 'include')
-rw-r--r--include/jemalloc/internal/mb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jemalloc/internal/mb.h b/include/jemalloc/internal/mb.h
index 5384728..e58da5c 100644
--- a/include/jemalloc/internal/mb.h
+++ b/include/jemalloc/internal/mb.h
@@ -76,7 +76,7 @@ mb_write(void)
: "memory" /* Clobbers. */
);
}
-#elif defined(__sparc64__)
+#elif defined(__sparc__) && defined(__arch64__)
JEMALLOC_INLINE void
mb_write(void)
{