]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados, ObjectCacher: include limits.h for INT_MAX
authorJosh Durgin <josh.durgin@inktank.com>
Thu, 24 May 2012 16:43:23 +0000 (09:43 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Thu, 24 May 2012 16:45:45 +0000 (09:45 -0700)
This was required to build on CentOS 6.2. I'm not sure why it worked
without it on Debian.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/librados/IoCtxImpl.cc
src/osdc/ObjectCacher.cc

index 34c8d13a42bff527524634264a4272825ab22fae..21689c287503ad1dc5dbe9f12ad4d04b614b9adb 100644 (file)
@@ -18,6 +18,7 @@
 #include "librados/PoolAsyncCompletionImpl.h"
 #include "librados/RadosClient.h"
 
+#include <limits.h>
 
 #define dout_subsys ceph_subsys_rados
 #undef dout_prefix
index ade79fb382f43d74fba91f4a2ea5af5ebe510d59..d03ff4545477e956f1d5f677be76a91e2fcc74bc 100644 (file)
@@ -7,6 +7,7 @@
 #include "common/errno.h"
 #include "common/perf_counters.h"
 
+#include <limits.h>
 
 /*** ObjectCacher::BufferHead ***/