From: Noah Watkins Date: Tue, 24 Sep 2013 16:09:28 +0000 (-0700) Subject: libcephfs: ignore missing offset64 definition X-Git-Tag: v0.75~51^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9d72c4f8ff61d771cdeddf2272102e66a84e43ad;p=ceph.git libcephfs: ignore missing offset64 definition on apple. Signed-off-by: Noah Watkins --- diff --git a/src/include/cephfs/libcephfs.h b/src/include/cephfs/libcephfs.h index 9b74f63c062d..ded4e1e120a4 100644 --- a/src/include/cephfs/libcephfs.h +++ b/src/include/cephfs/libcephfs.h @@ -32,9 +32,10 @@ extern "C" { #endif /* - * On FreeBSD the offset is 64 bit, but libc doesn't announce it in the way glibc does. + * On FreeBSD and Apple the offset is 64 bit, but libc doesn't announce it in + * the way glibc does. */ -#if !defined(__FreeBSD__) && !defined(__USE_FILE_OFFSET64) +#if !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(__USE_FILE_OFFSET64) # error libceph: must define __USE_FILE_OFFSET64 or readdir results will be corrupted #endif