From f47cc2869b000e4f36cbf1e13d55300a3aad59ee Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 21 Feb 2017 16:50:13 +0100 Subject: [PATCH] ceph_fuse.cc: fix 64/32bit detection Fix for: [src/ceph_fuse.cc:111]: (style) Condition 'sizeof(long)==4' is always false Signed-off-by: Danny Al-Gaaf --- src/ceph_fuse.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ceph_fuse.cc b/src/ceph_fuse.cc index 877417fac509..c8018256246f 100644 --- a/src/ceph_fuse.cc +++ b/src/ceph_fuse.cc @@ -108,12 +108,12 @@ int main(int argc, const char **argv, const char *envp[]) { g_ceph_context->_conf->apply_changes(NULL); // check for 32-bit arch - if (sizeof(long) == 4) { +#ifndef __LP64__ cerr << std::endl; cerr << "WARNING: Ceph inode numbers are 64 bits wide, and FUSE on 32-bit kernels does" << std::endl; cerr << " not cope well with that situation. Expect to crash shortly." << std::endl; cerr << std::endl; - } +#endif Preforker forker; if (g_conf->daemonize) { -- 2.47.3