]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix redefinitions build errors/warnings
authorDaniel Gollub <d.gollub@telekom.de>
Wed, 16 Apr 2014 15:40:37 +0000 (17:40 +0200)
committerCasey Bodley <cbodley@redhat.com>
Tue, 13 Sep 2016 14:46:28 +0000 (10:46 -0400)
due to not third-party include-safe fio.h

Signed-off-by: Daniel Gollub <daniel.gollub@gmail.com>
src/test/fio_ceph_filestore.cc

index 3c5a55eeb79665fe93d3c6a6f0e128d712f353c4..fc7c360c4fad619b6d0f761a7184a61a40c4c35c 100644 (file)
@@ -9,7 +9,15 @@
 #include "os/FileStore.h"
 #include "global/global_init.h"
 
-//#include "../../fio/fio.h"
+/* silence some fio.h include issues.
+ * fio.h needs to made robust for third-party software.
+ */
+#undef ARRAY_SIZE /* double declartion */
+#define CONFIG_CPU_COUNT /* double declaration: fio.h should check if CPU_COUNT alread got defined */
+#undef le16_to_cpu
+#undef le32_to_cpu
+#undef le64_to_cpu
+
 #include "fio.h"
 
 struct fio_ceph_filestore_iou {