diff options
| author | Christopher Ferris <cferris@google.com> | 2017-09-22 12:24:50 -0700 |
|---|---|---|
| committer | David Goldblatt <davidtgoldblatt@gmail.com> | 2018-01-10 21:01:18 -0800 |
| commit | f78d4ca3fbff6cab0c704c787706a53ddafcbe13 (patch) | |
| tree | 8cc6a214bde51a42beb77ac92fe0d00dd44c0c90 /include | |
| parent | ba5992fe9ac1708c812ec65bff3270bba17f1e1b (diff) | |
| download | platform_external_jemalloc_new-f78d4ca3fbff6cab0c704c787706a53ddafcbe13.tar.gz platform_external_jemalloc_new-f78d4ca3fbff6cab0c704c787706a53ddafcbe13.tar.bz2 platform_external_jemalloc_new-f78d4ca3fbff6cab0c704c787706a53ddafcbe13.zip | |
Modify configure to determine return value of strerror_r.
On glibc and Android's bionic, strerror_r returns char* when
_GNU_SOURCE is defined.
Add a configure check for this rather than assume glibc is the
only libc that behaves this way.
Diffstat (limited to 'include')
| -rw-r--r-- | include/jemalloc/internal/jemalloc_internal_defs.h.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_defs.h.in b/include/jemalloc/internal/jemalloc_internal_defs.h.in index aadfbed4..8dad9a1d 100644 --- a/include/jemalloc/internal/jemalloc_internal_defs.h.in +++ b/include/jemalloc/internal/jemalloc_internal_defs.h.in @@ -358,4 +358,9 @@ /* If defined, jemalloc takes the malloc/free/etc. symbol names. */ #undef JEMALLOC_IS_MALLOC +/* + * Defined if strerror_r returns char * if _GNU_SOURCE is defined. + */ +#undef JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE + #endif /* JEMALLOC_INTERNAL_DEFS_H_ */ |
