selftests/nolibc: prefer <sys/reboot.h> to <linux/reboot.h>
authorZhangjin Wu <falcon@tinylab.org>
Fri, 7 Jul 2023 18:30:58 +0000 (02:30 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 02:38:02 +0000 (04:38 +0200)
commit950add280c0b2221f2f28d0595c9c82f40cfe3ed
tree6a5f8d7e8f42891fa80f18b429c1c4820aa63225
parent788aca91ab5e4cccae158aac03a1d653c6da2fde
selftests/nolibc: prefer <sys/reboot.h> to <linux/reboot.h>

Since both glibc and musl provide RB_ flags via <sys/reboot.h>, and we
just add RB_ flags for nolibc, let's use RB_ flags instead of
LINUX_REBOOT_ flags and only reserve the required <sys/reboot.h> header.

This allows compile libc-test for musl libc without the linux headers.

Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
tools/testing/selftests/nolibc/nolibc-test.c