1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-25 07:49:18 +00:00

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:	accfb4cc93
Sponsored by:	Netflix
This commit is contained in:
Jonathan T. Looney 2023-11-16 17:45:02 +00:00
parent 070d9e3540
commit 884eeff20c

View File

@ -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"