From: Mike Frysinger Date: Wed, 18 Jan 2023 09:01:44 +0000 (-0500) Subject: linux-user: fix strace build w/out munlockall X-Git-Tag: v8.0.0-rc0~74^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d237b416b9499441b6833b91609ec840efd832b6;p=thirdparty%2Fqemu.git linux-user: fix strace build w/out munlockall Signed-off-by: Mike Frysinger Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20230118090144.31155-1-vapier@gentoo.org> Signed-off-by: Laurent Vivier --- diff --git a/linux-user/strace.c b/linux-user/strace.c index 5027289bdde..081fc87344c 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -1360,7 +1360,8 @@ UNUSED static const struct flags termios_lflags[] = { FLAG_END, }; -UNUSED static const struct flags mlockall_flags[] = { +#ifdef TARGET_NR_mlockall +static const struct flags mlockall_flags[] = { FLAG_TARGET(MCL_CURRENT), FLAG_TARGET(MCL_FUTURE), #ifdef MCL_ONFAULT @@ -1368,6 +1369,7 @@ UNUSED static const struct flags mlockall_flags[] = { #endif FLAG_END, }; +#endif /* IDs of the various system clocks */ #define TARGET_CLOCK_REALTIME 0