浏览代码

mem: old shm management disabled

Daniel-Constantin Mierla 10 年之前
父节点
当前提交
bf3e80bdf7
共有 2 个文件被更改,包括 9 次插入0 次删除
  1. 4 0
      mem/shm_mem.c
  2. 5 0
      mem/shm_mem.h

+ 4 - 0
mem/shm_mem.c

@@ -25,6 +25,8 @@
 
 #ifdef SHM_MEM
 
+#if 0
+
 #include <stdlib.h>
 
 #include "shm_mem.h"
@@ -266,3 +268,5 @@ unsigned long shm_available_safe()
 }
 
 #endif
+
+#endif

+ 5 - 0
mem/shm_mem.h

@@ -31,6 +31,10 @@
 #ifndef shm_mem_h
 #define shm_mem_h
 
+#include "shm.h"
+
+#if 0
+
 #include <string.h>
 #include <errno.h>
 #include <sys/types.h>
@@ -337,6 +341,7 @@ do{\
  */
 unsigned long shm_available_safe();
 
+#endif
 
 #endif /* shm_mem_h */