diff --git a/src/part.h b/src/part.h
index 2b5a28a897a59ec8984cef7941e6f9a8fb34e8f6..02c9f2d8fb95ba7810f04a521e74b7516a274486 100644
--- a/src/part.h
+++ b/src/part.h
@@ -19,6 +19,8 @@
 #ifndef SWIFT_PART_H
 #define SWIFT_PART_H
 
+#include "const.h"
+
 /* Some constants. */
 #define part_maxwait 3
 #define part_maxunlock 39