From: Nathan Bronson Date: Mon, 6 Oct 2014 04:04:53 +0000 (-0700) Subject: detail::MemoryIdler should use Malloc.h's mallctl decl X-Git-Tag: v0.22.0~298 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a04f2681dfcbebe4426184af3bcd795bd15152ec;p=folly.git detail::MemoryIdler should use Malloc.h's mallctl decl Summary: Malloc.h now takes care to declare mallctl properly on platforms that aren't using weak symbols, so we should just rely on that for MemoryIdler.cpp. This is one step toward fixing folly build on OS X. Test Plan: fbmake runtests Reviewed By: je@fb.com Subscribers: yiding, njormrod FB internal diff: D1596930 Tasks: 4952724 Blame Revision: --- diff --git a/folly/detail/MemoryIdler.cpp b/folly/detail/MemoryIdler.cpp index de585f2d..f40495b5 100644 --- a/folly/detail/MemoryIdler.cpp +++ b/folly/detail/MemoryIdler.cpp @@ -28,13 +28,6 @@ #include -// weak linking means the symbol will be null if not available, instead -// of a link failure -extern "C" int mallctl(const char *name, void *oldp, size_t *oldlenp, - void *newp, size_t newlen) - __attribute__((__weak__)); - - namespace folly { namespace detail { AtomicStruct