tools/nolibc: make sys_mmap() automatically use the right __NR_mmap definition
authorWilly Tarreau <w@1wt.eu>
Tue, 19 Jul 2022 21:44:34 +0000 (23:44 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 31 Aug 2022 12:17:43 +0000 (05:17 -0700)
commit364702f7551451f2fab341f1b31adf911c888375
treeb95af4692406f5ac8bb535ab5b1f6d8fd302f941
parent8b53e83b08cfdc3f430b5415cd1031d5e7e1f935
tools/nolibc: make sys_mmap() automatically use the right __NR_mmap definition

__NR_mmap2 was used for i386 but it's also needed for other archs such
as RISCV32 or ARM. Let's decide to use it based on the __NR_mmap2
definition as it's not defined on other archs.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/sys.h