Explorar o código

debugger: check for define of PKG_MEMORY to execute pkg checks

- allow compilation with system malloc for private memory
Daniel-Constantin Mierla %!s(int64=11) %!d(string=hai) anos
pai
achega
17cc9b0054
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/debugger/debugger_api.c

+ 1 - 1
modules/debugger/debugger_api.c

@@ -314,7 +314,7 @@ int dbg_cfg_trace(void *data)
 
 	if(_dbg_cfgpkgcheck!=0)
 	{
-#ifdef q_malloc_h
+#if defined (PKG_MEMORY) && defined (q_malloc_h)
 		LM_DBG("checking pkg memory before action %.*s (line %d)\n",
 				an->len, an->s, a->cline);
 		qm_check(mem_block);