initial code repo
[stor4nfv.git] / src / ceph / src / common / arch.h
diff --git a/src/ceph/src/common/arch.h b/src/ceph/src/common/arch.h
new file mode 100644 (file)
index 0000000..09dbe7c
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef CEPH_ARCH_H
+#define CEPH_ARCH_H
+
+static const char *get_arch()
+{
+#if defined(__i386__)
+  return "i386";
+#elif defined(__x86_64__)
+  return "x86-64";
+#else
+    return "unknown";
+#endif
+}
+
+#endif