diff options
author | Eric Le Bihan <eric.le.bihan.dev@free.fr> | 2016-07-14 22:44:01 +0200 |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2016-09-26 15:14:59 -0700 |
commit | b54c0c2925fd5acd63fd3957aa9e177c3fd8d27f (patch) | |
tree | 89da2d8c643abe1e46e087699a30210a61cc0c0e /include | |
parent | c128167bca9b652dd7cd90fd724ff0d02e66289f (diff) | |
download | jemalloc-b54c0c2925fd5acd63fd3957aa9e177c3fd8d27f.tar.gz |
Fix LG_QUANTUM definition for sparc64
GCC 4.9.3 cross-compiled for sparc64 defines __sparc_v9__, not
__sparc64__ nor __sparcv9. This prevents LG_QUANTUM from being defined
properly. Adding this new value to the check solves the issue.
Diffstat (limited to 'include')
-rw-r--r-- | include/jemalloc/internal/jemalloc_internal.h.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal.h.in b/include/jemalloc/internal/jemalloc_internal.h.in index 1e45bc9..6a0aa00 100644 --- a/include/jemalloc/internal/jemalloc_internal.h.in +++ b/include/jemalloc/internal/jemalloc_internal.h.in @@ -236,7 +236,7 @@ typedef unsigned szind_t; # ifdef __alpha__ # define LG_QUANTUM 4 # endif -# if (defined(__sparc64__) || defined(__sparcv9)) +# if (defined(__sparc64__) || defined(__sparcv9) || defined(__sparc_v9__)) # define LG_QUANTUM 4 # endif # if (defined(__amd64__) || defined(__x86_64__) || defined(_M_X64)) |