summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-11-03 02:18:33 (GMT)
committerJason Evans <jasone@canonware.com>2016-11-03 02:18:33 (GMT)
commitd82f2b3473daef45d92d2a83d11487b22f9db4d3 (patch)
treebbc90aba058c1c43ddc8e86372f46e890b076c1b /src/util.c
parent795f6689dec28f161afbf5964ef1b17288dd384d (diff)
downloadjemalloc-d82f2b3473daef45d92d2a83d11487b22f9db4d3.zip
jemalloc-d82f2b3473daef45d92d2a83d11487b22f9db4d3.tar.gz
jemalloc-d82f2b3473daef45d92d2a83d11487b22f9db4d3.tar.bz2
Do not use syscall(2) on OS X 10.12 (deprecated).
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 881a7fd..5b8175b 100644
--- a/src/util.c
+++ b/src/util.c
@@ -49,7 +49,7 @@ static void
wrtmessage(void *cbopaque, const char *s)
{
-#ifdef SYS_write
+#if defined(JEMALLOC_HAVE_SYSCALL) && defined(SYS_write)
/*
* Use syscall(2) rather than write(2) when possible in order to avoid
* the possibility of memory allocation within libc. This is necessary