From: Kefu Chai Date: Wed, 19 May 2021 01:18:33 +0000 (+0800) Subject: libcephfs: include X-Git-Tag: v17.1.0~1915^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c52f35948707ad36f194b92d5dd6af12ec9f2dda;p=ceph.git libcephfs: include 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 --- diff --git a/src/include/cephfs/libcephfs.h b/src/include/cephfs/libcephfs.h index 4e477712afc3..876ba2b0aea4 100644 --- a/src/include/cephfs/libcephfs.h +++ b/src/include/cephfs/libcephfs.h @@ -20,6 +20,7 @@ #endif #include #include +#include #include #include #include