瀏覽代碼

include the header for req_padding() in necessary source files

Ioannis Koutras 12 年之前
父節點
當前提交
ee9a7390e8
共有 4 個文件被更改,包括 5 次插入0 次删除
  1. 1 0
      src/freelist/realloc.c
  2. 1 0
      src/freelist/split.c
  3. 2 0
      src/other.c
  4. 1 0
      src/realloc.c

+ 1 - 0
src/freelist/realloc.c

@@ -36,6 +36,7 @@
 #endif /* HAVE_LOCKS */
 #include "locks.h"
 #include "other.h"
+#include "padding.h"
 
 /**
  * Re-allocates a memory block from a freelist-organized raw block

+ 1 - 0
src/freelist/split.c

@@ -23,6 +23,7 @@
 #endif /* WITH_KNOBS */
 
 #include "other.h"
+#include "padding.h"
 
 #include "freelist/block_header_funcs.h"
 #include "freelist/ordering_policy.h"

+ 2 - 0
src/other.c

@@ -25,6 +25,8 @@
 
 #include "other.h"
 
+#include <inttypes.h>
+
 /** Finds the raw block owner of a certain pointer */
 raw_block_header_t * find_raw_block_owner(struct rb_head_s head, void* ptr) {
     raw_block_header_t *current_block, *owner;

+ 1 - 0
src/realloc.c

@@ -31,6 +31,7 @@
 #include "default_rb.h"
 #include "dmmlib_trace.h"
 #include "other.h"
+#include "padding.h"
 #include "statistics.h"
 
 #include "release_memory.h"