diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-01-18 04:01:44 -0500 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2023-02-03 22:55:12 +0100 |
commit | d237b416b9499441b6833b91609ec840efd832b6 (patch) | |
tree | 1d13508ed9c5988f5c888d1997a3878c0fc0083f /linux-user/strace.c | |
parent | 6490d9aa62ef3cbbac2bf584fb0f3e737ab05e44 (diff) | |
download | qemu-d237b416b9499441b6833b91609ec840efd832b6.zip qemu-d237b416b9499441b6833b91609ec840efd832b6.tar.gz qemu-d237b416b9499441b6833b91609ec840efd832b6.tar.bz2 |
linux-user: fix strace build w/out munlockall
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230118090144.31155-1-vapier@gentoo.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/strace.c')
-rw-r--r-- | linux-user/strace.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-user/strace.c b/linux-user/strace.c index 5027289..081fc87 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 |