From 884eeff20ce91ff9fd5cd0a1766e094dcb15b463 Mon Sep 17 00:00:00 2001 From: "Jonathan T. Looney" Date: Thu, 16 Nov 2023 17:45:02 +0000 Subject: [PATCH] genoffset.sh: fix build break on MacOS Switch from using the shell's builtin echo command to using the builtin printf command to print the asserts. Reported by: jrtc27 Suggested by: imp Fixes: accfb4cc9346 Sponsored by: Netflix --- sys/kern/genoffset.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/genoffset.sh b/sys/kern/genoffset.sh index c974a7d52e8..25ed6ac7cb7 100644 --- a/sys/kern/genoffset.sh +++ b/sys/kern/genoffset.sh @@ -64,7 +64,7 @@ EOT echo "};" echo "#define _SA(s,f,o) _Static_assert(__builtin_offsetof(struct s ## _lite, f) == o, \\" printf '\t"struct "#s"_lite field "#f" not at offset "#o)\n' - echo -e "${asserts}\c" + printf "${asserts}" echo "#undef _SA" echo "#endif" echo "#endif"