From a5dfa2bc560b42c7d54c4183ed0ed0b970a6149a Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Sun, 16 Dec 2018 18:23:52 +0100 Subject: [PATCH] test: allow ceph_kvstorebench to be build on FreeBSD Add compat.h to fix missing error codes ``` /home/srcs/Ceph/bluestore/ceph/src/key_value_store/kv_flat_btree_async.cc:448:15: error: use of undeclared identifier 'EUCLEAN' return -EUCLEAN; ^ /home/srcs/Ceph/bluestore/ceph/src/key_value_store/kv_flat_btree_async.cc:1434:11: error: use of undeclared identifier 'EKEYREJECTED' case -EKEYREJECTED: { ^ /home/srcs/Ceph/bluestore/ceph/src/key_value_store/kv_flat_btree_async.cc:1554:11: error: use of undeclared identifier 'EKEYREJECTED' case -EKEYREJECTED: { ^ /home/srcs/Ceph/bluestore/ceph/src/key_value_store/kv_flat_btree_async.cc:1583:17: error: use of undeclared identifier 'EUCLEAN' case -EUCLEAN: ^ /home/srcs/Ceph/bluestore/ceph/src/key_value_store/kv_flat_btree_async.cc:1661:18: error: use of undeclared identifier 'EUCLEAN' && err != -EUCLEAN){ ^ ``` Signed-off-by: Willem Jan Withagen --- src/key_value_store/kv_flat_btree_async.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/key_value_store/kv_flat_btree_async.cc b/src/key_value_store/kv_flat_btree_async.cc index b833a458d2c..5aec8032e7a 100644 --- a/src/key_value_store/kv_flat_btree_async.cc +++ b/src/key_value_store/kv_flat_btree_async.cc @@ -11,6 +11,7 @@ * Foundation. See file COPYING. */ +#include "include/compat.h" #include "key_value_store/key_value_structure.h" #include "key_value_store/kv_flat_btree_async.h" #include "key_value_store/kvs_arg_types.h"