]>
git.apps.os.sepia.ceph.com Git - ceph.git/commit
libcephfs: include <sys/time.h>
header files should be self-contained. we are using `timeval` in the header,
but failed to include the header defining it.
this change addresses the build failures on Darwin like:
int ceph_lutimes(struct ceph_mount_info *cmount, const char *path, struct timeval times[2]);
^
src/include/cephfs/libcephfs.h:1080:78: error: array has incomplete element type 'struct timeval'
int ceph_futimes(struct ceph_mount_info *cmount, int fd, struct timeval times[2]);
^
src/include/cephfs/libcephfs.h:1080:65: note: forward declaration of 'struct timeval'
int ceph_futimes(struct ceph_mount_info *cmount, int fd, struct timeval times[2]);
^
3 errors generated.
Signed-off-by: Kefu Chai <kchai@redhat.com>