From a04f2681dfcbebe4426184af3bcd795bd15152ec Mon Sep 17 00:00:00 2001 From: Nathan Bronson Date: Sun, 5 Oct 2014 21:04:53 -0700 Subject: [PATCH] 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: --- folly/detail/MemoryIdler.cpp | 7 ------- 1 file changed, 7 deletions(-) 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 -- 2.34.1