From bca4ca79494cdb89b5bd9915c00efadbda16a04b Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Wed, 22 Oct 2025 13:52:22 +1100 Subject: [PATCH] libspl: add include guards for sys/string.h The extra inclusion via xvattr.h appears to upset the linter in CI. I'm not entirely sure what its complaint is, but removing sys/string.h entirely is not quite possible yet, and include guards are rarely a bad idea, so this will do. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf Signed-off-by: Rob Norris Closes #17861 --- lib/libspl/include/sys/string.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libspl/include/sys/string.h b/lib/libspl/include/sys/string.h index 3b2f59002..55ccbd090 100644 --- a/lib/libspl/include/sys/string.h +++ b/lib/libspl/include/sys/string.h @@ -1 +1,4 @@ +#ifndef _LIBSPL_SYS_STRING_H +#define _LIBSPL_SYS_STRING_H #include +#endif