From 101506aa6a951075129186b7afb29fa275352978 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 28 Apr 2011 15:49:37 -0700 Subject: [PATCH] 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 --- src/include/ceph/libceph.h | 4 ++++ 1 file changed, 4 insertions(+) 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;