From: Shaun Tancheff Date: Thu, 26 Jan 2023 05:23:43 +0000 (-0800) Subject: LU-16111 build: Fix include of stddef.h X-Git-Tag: 2.15.3-RC1~79 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=51d187e7f9db349beee2183f75d53e660dbb5318;p=fs%2Flustre-release.git LU-16111 build: Fix include of stddef.h In kernel builds include the linux/stddef.h Lustre-change: https://review.whamcloud.com/48367 Lustre-commit: 95f7ef609467a9534b0b1639eba0ef5a2c02f21f Test-Parameters: trivial HPE-bug-id: LUS-11185 Signed-off-by: Shaun Tancheff Change-Id: I0db81e01fadd01445515f96b3d04a2ec51f43044 Reviewed-by: Jian Yu Reviewed-by: James Simmons Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49105 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin Reviewed-by: jsimmons Reviewed-by: Arshad Hussain --- diff --git a/lustre/include/uapi/linux/lustre/lustre_fiemap.h b/lustre/include/uapi/linux/lustre/lustre_fiemap.h index 8204cd9..d530794 100644 --- a/lustre/include/uapi/linux/lustre/lustre_fiemap.h +++ b/lustre/include/uapi/linux/lustre/lustre_fiemap.h @@ -38,7 +38,11 @@ #ifndef _LUSTRE_FIEMAP_H #define _LUSTRE_FIEMAP_H -#include +#ifdef __KERNEL__ +# include +#else +# include +#endif #include #include