From: Danny Al-Gaaf Date: Tue, 21 Feb 2017 15:50:13 +0000 (+0100) Subject: ceph_fuse.cc: fix 64/32bit detection X-Git-Tag: v12.0.2~116^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f47cc2869b000e4f36cbf1e13d55300a3aad59ee;p=ceph.git 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 --- 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) {