summary refs log tree commit diff stats
path: root/linux-user/strace.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-01-18 04:01:44 -0500
committerLaurent Vivier <laurent@vivier.eu>2023-02-03 22:55:12 +0100
commitd237b416b9499441b6833b91609ec840efd832b6 (patch)
tree1d13508ed9c5988f5c888d1997a3878c0fc0083f /linux-user/strace.c
parent6490d9aa62ef3cbbac2bf584fb0f3e737ab05e44 (diff)
downloadfocaccia-qemu-d237b416b9499441b6833b91609ec840efd832b6.tar.gz
focaccia-qemu-d237b416b9499441b6833b91609ec840efd832b6.zip
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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-user/strace.c b/linux-user/strace.c
index 5027289bdd..081fc87344 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