Răsfoiți Sursa

mem: old pkg management disabled

Daniel-Constantin Mierla 10 ani în urmă
părinte
comite
50df0feecc
2 a modificat fișierele cu 7 adăugiri și 0 ștergeri
  1. 3 0
      mem/mem.c
  2. 4 0
      mem/mem.h

+ 3 - 0
mem/mem.c

@@ -42,6 +42,8 @@
 #include "shm_mem.h"
 #endif
 
+#if 0
+
 #ifdef PKG_MALLOC
 	#ifndef DL_MALLOC
 	char* mem_pool = 0;
@@ -130,3 +132,4 @@ int init_shm_mallocs(int force_alloc)
 #endif
 	return 0;
 }
+#endif 

+ 4 - 0
mem/mem.h

@@ -40,6 +40,9 @@
 #include "../config.h"
 #include "../dprint.h"
 
+#include "pkg.h"
+
+#if 0
 /* fix debug defines, DBG_F_MALLOC <=> DBG_QM_MALLOC */
 #ifdef F_MALLOC
 	#ifdef DBG_F_MALLOC
@@ -187,6 +190,7 @@ void destroy_pkg_mallocs(void);
  * \return 0 if the memory allocation was successful, -1 otherwise
  */
 int init_shm_mallocs(int force_alloc);
+#endif
 
 /** generic logging helper for allocation errors in private memory pool/ system */
 #ifdef SYSTEM_MALLOC