]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
compat: consolidate definitions of osx and freebsd
authorKefu Chai <kchai@redhat.com>
Sun, 10 Sep 2017 18:00:44 +0000 (02:00 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 16 Sep 2017 02:43:32 +0000 (10:43 +0800)
commit56a897449b7e90495864d6b1d212b0e6e0cc10b2
treea0eacfb3ad82275c7b35688607b34e6604023cdc
parent3eff8a65c7f9db4136ba550a9966095b3c359ad3
compat: consolidate definitions of osx and freebsd

on osx, ENODATA = 96, so we need to fix it. also define
CLOCK_MONOTONIC_COARSE and CLOCK_REALTIME_COARSE for osx, ceph_time.h
defines this also, but i don't want to include compat.h in ceph_time.h
at this moment.

and silence the warning of
 #warning ENODATA already defined to a value different from 87 (ENOATRR), refining to fix
because it is fired everywhere on osx when "compat.h" is included.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/compat.h