From: Sage Weil Date: Thu, 28 Apr 2011 22:49:37 +0000 (-0700) Subject: libceph: error out if USE_FILE_OFFSET64 not defined X-Git-Tag: v0.28~132^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=101506aa6a951075129186b7afb29fa275352978;p=ceph.git libceph: error out if USE_FILE_OFFSET64 not defined Otherwise struct dirent will not match user code and badness on readdir will ensure. Signed-off-by: Sage Weil --- diff --git a/src/include/ceph/libceph.h b/src/include/ceph/libceph.h index bc50f35ccf3..3ed3369367f 100644 --- a/src/include/ceph/libceph.h +++ b/src/include/ceph/libceph.h @@ -23,6 +23,10 @@ extern "C" { #endif +#ifndef __USE_FILE_OFFSET64 +# error libceph: must define __USE_FILE_OFFSET64 or readdir results will be corrupted +#endif + struct ceph_mount_info; struct ceph_dir_result;