From c52f35948707ad36f194b92d5dd6af12ec9f2dda Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 19 May 2021 09:18:33 +0800 Subject: [PATCH] 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 --- src/include/cephfs/libcephfs.h | 1 + 1 file changed, 1 insertion(+) 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 -- 2.47.3