You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2017/09/14 17:10:15 UTC
[trafficserver] branch master updated: ink_memory.cc: musl support
tiny fix
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new bf64ec2 ink_memory.cc: musl support tiny fix
bf64ec2 is described below
commit bf64ec2dfc251d140d78b3a033863579ef6cffcc
Author: IvanStarodubtsev <we...@users.noreply.github.com>
AuthorDate: Tue Sep 12 15:42:48 2017 +0300
ink_memory.cc: musl support tiny fix
mallopt is GLIBC only (alpine3.6/musl)
---
lib/ts/ink_memory.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/ts/ink_memory.cc b/lib/ts/ink_memory.cc
index 6811c4e..9cbcbd7 100644
--- a/lib/ts/ink_memory.cc
+++ b/lib/ts/ink_memory.cc
@@ -159,9 +159,9 @@ ats_mallopt(int param ATS_UNUSED, int value ATS_UNUSED)
#if TS_HAS_TCMALLOC
// TODO: tcmalloc code ?
#else
-#if defined(linux)
+#if defined(__GLIBC__)
return mallopt(param, value);
-#endif // ! defined(linux)
+#endif // ! defined(__GLIBC__)
#endif // ! TS_HAS_TCMALLOC
#endif // ! TS_HAS_JEMALLOC
return 0;
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].