]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
libceph: error out if USE_FILE_OFFSET64 not defined
authorSage Weil <sage@newdream.net>
Thu, 28 Apr 2011 22:49:37 +0000 (15:49 -0700)
committerSage Weil <sage@newdream.net>
Thu, 28 Apr 2011 22:49:37 +0000 (15:49 -0700)
Otherwise struct dirent will not match user code and badness on readdir
will ensure.

Signed-off-by: Sage Weil <sage@newdream.net>
src/include/ceph/libceph.h

index bc50f35ccf302127cbf4f09a3d5425e6757b230b..3ed3369367f1a591e380affc05a1b3e0a501bfd9 100644 (file)
 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;