From: Willem Jan Withagen Date: Thu, 9 Feb 2017 18:49:40 +0000 (+0100) Subject: common: include/ceph_features.h uses uint64_t, which is in sys/types.h X-Git-Tag: v12.0.1~339^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=782ae4e48840f32735964d85cb5a1523cc051826;p=ceph.git common: include/ceph_features.h uses uint64_t, which is in sys/types.h When compiling with Clang on FreeBSD there are lots of errors about missing uint64_t: In file included from /home/jenkins/workspace/ceph-master/src/msg/msg_types.cc:2: In file included from /home/jenkins/workspace/ceph-master/src/msg/msg_types.h:20: /home/jenkins/workspace/ceph-master/src/include/ceph_features.h:71:1: error: unknown type name 'uint64_t' DEFINE_CEPH_FEATURE( 0, 1, UID) ^ /home/jenkins/workspace/ceph-master/src/include/ceph_features.h:14:15: note: expanded from macro 'DEFINE_CEPH_FEATURE' const static uint64_t CEPH_FEATURE_##name = (1ULL< --- diff --git a/src/include/ceph_features.h b/src/include/ceph_features.h index e3f783c6ac9..bd95d073a25 100755 --- a/src/include/ceph_features.h +++ b/src/include/ceph_features.h @@ -1,6 +1,7 @@ #ifndef __CEPH_FEATURES #define __CEPH_FEATURES +#include "sys/types.h" /* * Each time we reclaim bits for reuse we need to specify another bit