summaryrefslogtreecommitdiffstats
path: root/src/chunk_dss.c
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2012-04-12 08:13:03 (GMT)
committerJason Evans <jasone@canonware.com>2012-04-12 15:43:08 (GMT)
commit83c324acd8bd5f32e0ce9b4d3df2f1a0ae46f487 (patch)
tree111f4798bd75e30c58e732f9d54f731aad1a069d /src/chunk_dss.c
parent5ff709c264e52651de25b788692c62ff1f6f389c (diff)
downloadjemalloc-83c324acd8bd5f32e0ce9b4d3df2f1a0ae46f487.zip
jemalloc-83c324acd8bd5f32e0ce9b4d3df2f1a0ae46f487.tar.gz
jemalloc-83c324acd8bd5f32e0ce9b4d3df2f1a0ae46f487.tar.bz2
Use a stub replacement and disable dss when sbrk is not supported
Diffstat (limited to 'src/chunk_dss.c')
-rw-r--r--src/chunk_dss.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/chunk_dss.c b/src/chunk_dss.c
index 7c03409..5fb6a73 100644
--- a/src/chunk_dss.c
+++ b/src/chunk_dss.c
@@ -3,6 +3,17 @@
/******************************************************************************/
/* Data. */
+#ifndef JEMALLOC_HAVE_SBRK
+void *
+sbrk(intptr_t increment)
+{
+
+ not_implemented();
+
+ return (NULL);
+}
+#endif
+
/*
* Protects sbrk() calls. This avoids malloc races among threads, though it
* does not protect against races with threads that call sbrk() directly.