summaryrefslogtreecommitdiff
path: root/include/linux/crush/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/crush/hash.h')
-rw-r--r--include/linux/crush/hash.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/crush/hash.h b/include/linux/crush/hash.h
index 91e884230..d1d902582 100644
--- a/include/linux/crush/hash.h
+++ b/include/linux/crush/hash.h
@@ -1,6 +1,12 @@
#ifndef CEPH_CRUSH_HASH_H
#define CEPH_CRUSH_HASH_H
+#ifdef __KERNEL__
+# include <linux/types.h>
+#else
+# include "crush_compat.h"
+#endif
+
#define CRUSH_HASH_RJENKINS1 0
#define CRUSH_HASH_DEFAULT CRUSH_HASH_RJENKINS1