]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
linux-user: fix GPROF build failure
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 2 May 2019 09:27:28 +0000 (10:27 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 10 May 2019 10:44:23 +0000 (12:44 +0200)
When linux-user/exit was introduced we failed to move the gprof
include at the same time. The CI didn't notice because it only builds
system emulation. Fix it for those that still find gprof useful.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Message-Id: <20190502092728.32727-1-alex.bennee@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/exit.c
linux-user/syscall.c

index 14e94e28faf867a0d3c16c0080d2dd2b3e0bea31..bdda7205532e802c4a01f132ea53602b6bbdc699 100644 (file)
@@ -18,6 +18,9 @@
  */
 #include "qemu/osdep.h"
 #include "qemu.h"
+#ifdef TARGET_GPROF
+#include <sys/gmon.h>
+#endif
 
 #ifdef CONFIG_GCOV
 extern void __gcov_dump(void);
index 44b593b811619a19db141e6d4fc0b31fa6d7f8c3..f5ff6f5dc8a8c2cebf0d26d5f769f62aae4f2edd 100644 (file)
@@ -59,9 +59,6 @@
 #ifdef CONFIG_TIMERFD
 #include <sys/timerfd.h>
 #endif
-#ifdef TARGET_GPROF
-#include <sys/gmon.h>
-#endif
 #ifdef CONFIG_EVENTFD
 #include <sys/eventfd.h>
 #endif