]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
linux-user: fix strace build w/out munlockall
authorMike Frysinger <vapier@gentoo.org>
Wed, 18 Jan 2023 09:01:44 +0000 (04:01 -0500)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 3 Feb 2023 21:55:12 +0000 (22:55 +0100)
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>
linux-user/strace.c

index 5027289bdde42430540b5a4023578471ac3cd17a..081fc87344cae83adeb749d7fef118e1d35b2c81 100644 (file)
@@ -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