aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-04-14 15:14:50 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-03-18 19:02:28 +0100
commit7cd8dc41681313557d8fbdd185a5d6c68873ecdc (patch)
treef9c1cc705fa29a79572cd926e212bf83044a0adc
parentaa35b472057ea8eea0853e4e88f1568e1921b1eb (diff)
downloadsparse-dev-7cd8dc41681313557d8fbdd185a5d6c68873ecdc.tar.gz
alloc: add missing #include "compat.h"
"allocate.h" need to include "compat.h" for the definition of CHUNK but this header file is only include indirectly, via other files including "allocate.h". Fix this by adding "compat.h" in allocate.h Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--allocate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/allocate.h b/allocate.h
index cbddc2aa..5137ae93 100644
--- a/allocate.h
+++ b/allocate.h
@@ -1,6 +1,8 @@
#ifndef ALLOCATE_H
#define ALLOCATE_H
+#include "compat.h"
+
struct allocation_blob {
struct allocation_blob *next;
unsigned int left, offset;