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 <sage@newdream.net>
This commit is contained in:
Sage Weil 2011-04-28 15:49:37 -07:00
parent e9fac67fe1
commit 101506aa6a

View File

@ -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;