]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
libcephfs: ignore missing offset64 definition
authorNoah Watkins <noahwatkins@gmail.com>
Tue, 24 Sep 2013 16:09:28 +0000 (09:09 -0700)
committerNoah Watkins <noahwatkins@gmail.com>
Fri, 20 Dec 2013 23:43:48 +0000 (15:43 -0800)
on apple.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
src/include/cephfs/libcephfs.h

index 9b74f63c062d3b0dd0df74bb2f93177811ef9c76..ded4e1e120a4b18f99aa0f7a7842c55793f2643c 100644 (file)
@@ -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