]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
libcephfs: define loff_t as off_t on OSX
authorYan, Zheng <zyan@redhat.com>
Fri, 24 Jul 2015 07:30:03 +0000 (15:30 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 31 Aug 2015 08:00:24 +0000 (16:00 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/include/cephfs/libcephfs.h

index 45585f494be7e72cec119c7696ce675093d12a35..20830933ada5f89addb66426b87685bdfd894662 100644 (file)
@@ -24,7 +24,7 @@
 #include <stdbool.h>
 
 // FreeBSD compatibility
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__APPLE__)
 typedef off_t loff_t;
 typedef off_t off64_t;
 #endif