From 64ba3d7cd9901ed00d690365b1b3da6aa7b9cd59 Mon Sep 17 00:00:00 2001
From: Jason Evans <je@fb.com>
Date: Wed, 30 Mar 2011 16:02:25 -0700
Subject: Fix a build error for --disable-tcache.

Add a missing #ifdef to conditionally exclude code that is relevant only
to the tcache feature.
---
 jemalloc/src/ctl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/jemalloc/src/ctl.c b/jemalloc/src/ctl.c
index 40fdbac..e5336d3 100644
--- a/jemalloc/src/ctl.c
+++ b/jemalloc/src/ctl.c
@@ -1151,11 +1151,13 @@ thread_arena_ctl(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp,
 
 		/* Set new arena association. */
 		ARENA_SET(arena);
+#ifdef JEMALLOC_TCACHE
 		{
 			tcache_t *tcache = TCACHE_GET();
 			if (tcache != NULL)
 				tcache->arena = arena;
 		}
+#endif
 	}
 
 	ret = 0;
-- 
cgit v0.12