initial code repo
[stor4nfv.git] / src / ceph / src / crush / types.h
diff --git a/src/ceph/src/crush/types.h b/src/ceph/src/crush/types.h
new file mode 100644 (file)
index 0000000..61f50c2
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef CEPH_CRUSH_TYPES_H
+#define CEPH_CRUSH_TYPES_H
+
+#ifdef KERNEL
+# define free(x) kfree(x)
+#else
+# include <stdlib.h>
+#endif
+
+
+#include <linux/types.h>  /* just for int types */
+
+#ifndef BUG_ON
+# define BUG_ON(x) assert(!(x))
+#endif
+
+#endif