Skip to content

Commit

Permalink
Merge pull request ceph#25302 from wjwithagen/wjw-wip-build-kv_store_2
Browse files Browse the repository at this point in the history
include: define errnos if not defined for better portablity

Reviewed-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov authored Nov 29, 2018
2 parents f53b893 + dbbe633 commit 87bb80e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion do_freebsd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fi
-D WITH_FUSE=ON \
-D WITH_KRBD=OFF \
-D WITH_XFS=OFF \
-D WITH_KVS=OFF \
-D WITH_KVS=ON \
-D CEPH_MAN_DIR=man \
-D WITH_LIBCEPHFS=OFF \
-D WITH_CEPHFS=OFF \
Expand Down
6 changes: 6 additions & 0 deletions src/include/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,15 @@
/* get PATH_MAX */
#include <limits.h>

#ifndef EUCLEAN
#define EUCLEAN 117
#endif
#ifndef EREMOTEIO
#define EREMOTEIO 121
#endif
#ifndef EKEYREJECTED
#define EKEYREJECTED 129
#endif

#ifndef HOST_NAME_MAX
#ifdef MAXHOSTNAMELEN
Expand Down
1 change: 1 addition & 0 deletions src/key_value_store/cls_kvs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Author: Eleanor Cawthon
*/

#include "include/compat.h"
#include "objclass/objclass.h"
#include <errno.h>
#include "key_value_store/kvs_arg_types.h"
Expand Down

0 comments on commit 87bb80e

Please sign in to comment.