summaryrefslogtreecommitdiff
path: root/src/crush/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crush/hash.h')
-rw-r--r--src/crush/hash.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/crush/hash.h b/src/crush/hash.h
index 91e884230d5..900bfd873d1 100644
--- a/src/crush/hash.h
+++ b/src/crush/hash.h
@@ -1,6 +1,13 @@
#ifndef CEPH_CRUSH_HASH_H
#define CEPH_CRUSH_HASH_H
+#if defined(__linux__)
+#include <linux/types.h>
+#elif defined(__FreeBSD__)
+#include <sys/types.h>
+#include "include/inttypes.h"
+#endif
+
#define CRUSH_HASH_RJENKINS1 0
#define CRUSH_HASH_DEFAULT CRUSH_HASH_RJENKINS1