You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2016/02/24 22:17:15 UTC
trafficserver git commit: TS-4212: Fix for FreeBSD and
malloc_usable_size()
Repository: trafficserver
Updated Branches:
refs/heads/master fa9c94b7c -> d2f22987e
TS-4212: Fix for FreeBSD and malloc_usable_size()
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/d2f22987
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/d2f22987
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/d2f22987
Branch: refs/heads/master
Commit: d2f22987e387ad4282bcff307e28a6393ecb86e8
Parents: fa9c94b
Author: Bryan Call <bc...@apache.org>
Authored: Wed Feb 24 13:16:07 2016 -0800
Committer: Bryan Call <bc...@apache.org>
Committed: Wed Feb 24 13:16:07 2016 -0800
----------------------------------------------------------------------
lib/ts/ink_memory.cc | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d2f22987/lib/ts/ink_memory.cc
----------------------------------------------------------------------
diff --git a/lib/ts/ink_memory.cc b/lib/ts/ink_memory.cc
index 00d7eb6..9889806 100644
--- a/lib/ts/ink_memory.cc
+++ b/lib/ts/ink_memory.cc
@@ -27,6 +27,10 @@
#include "ts/Diags.h"
#include "ts/ink_atomic.h"
+#if defined(freebsd)
+#include <malloc_np.h> // for malloc_usable_size
+#endif
+
#include <assert.h>
#if defined(linux)
// XXX: SHouldn't that be part of CPPFLAGS?