Whamcloud - gitweb
LU-13945 utils: add includes for copy_file_range() 21/39821/2
authorJohn L. Hammond <jhammond@whamcloud.com>
Thu, 3 Sep 2020 16:48:42 +0000 (11:48 -0500)
committerOleg Drokin <green@whamcloud.com>
Thu, 10 Sep 2020 15:00:20 +0000 (15:00 +0000)
In lstddef.h include the needed headers to support the compat
definition of copy_file_range().

Test-Parameters: trivial
Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: I83544cbbeb6407f4c3bb9fa3bd2a1297f2b2a2dc
Reviewed-on: https://review.whamcloud.com/39821
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Gu Zheng <gzheng@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/utils/lstddef.h

index 7b785a7..ee7d9b5 100644 (file)
@@ -1,8 +1,11 @@
 #ifndef _LSTDDEF_H
 #define _LSTDDEF_H
 
+#include <unistd.h>
 #include <linux/types.h>
 #include <sys/param.h>
+#include <sys/syscall.h>
+#include <sys/types.h>
 
 #define __ALIGN_LSTDDEF_MASK(x, mask) (((x) + (mask)) & ~(mask))
 #define __ALIGN_LSTDDEF(x, a) __ALIGN_LSTDDEF_MASK(x, (typeof(x))(a) - 1)