summary refs log tree commit diff stats
path: root/lib/system/memalloc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system/memalloc.nim')
-rw-r--r--lib/system/memalloc.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/memalloc.nim b/lib/system/memalloc.nim
index df4df2c15..178d199b8 100644
--- a/lib/system/memalloc.nim
+++ b/lib/system/memalloc.nim
@@ -339,7 +339,7 @@ when defined(js):
   proc reallocShared0(p: pointer, oldsize, newsize: Natural): pointer = discard
 
 
-when hasAlloc and hasThreadSupport:
+when hasAlloc and hasThreadSupport and not defined(useMalloc):
   proc getOccupiedSharedMem*(): int {.rtl.}
     ## Returns the number of bytes that are owned by the process
     ## on the shared heap and hold data. This is only available when