summaryrefslogtreecommitdiffstats
path: root/src/common/arch.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/common/arch.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/common/arch.h b/src/common/arch.h
new file mode 100644
index 000000000..09dbe7c90
--- /dev/null
+++ b/src/common/arch.h
@@ -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