qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] tests: add missing include
@ 2015-06-23 16:40 Marc-André Lureau
  2015-06-24 12:39 ` Andreas Färber
  0 siblings, 1 reply; 3+ messages in thread
From: Marc-André Lureau @ 2015-06-23 16:40 UTC (permalink / raw)
  To: qemu-devel; +Cc: Marc-André Lureau

Fix make test errors of this kind on fedora 22:

linux-test.c:230:19: error: storage size of ‘rusg1’ isn’t known
     struct rusage rusg1, rusg2;

Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
---
 tests/tcg/linux-test.c | 1 +
 tests/tcg/test_path.c  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tests/tcg/linux-test.c b/tests/tcg/linux-test.c
index 1c6c013..9b3ccc3 100644
--- a/tests/tcg/linux-test.c
+++ b/tests/tcg/linux-test.c
@@ -38,6 +38,7 @@
 #include <sched.h>
 #include <dirent.h>
 #include <setjmp.h>
+#include <sys/resource.h>
 #include <sys/shm.h>
 
 #define TESTPATH "/tmp/linux-test.tmp"
diff --git a/tests/tcg/test_path.c b/tests/tcg/test_path.c
index 1c29bce..edf280c 100644
--- a/tests/tcg/test_path.c
+++ b/tests/tcg/test_path.c
@@ -7,6 +7,7 @@
 #include "util/qemu-timer-common.c"
 #include <stdarg.h>
 #include <sys/stat.h>
+#include <sys/resource.h>
 #include <fcntl.h>
 
 void qemu_log(const char *fmt, ...);
-- 
2.4.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-24 14:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-23 16:40 [Qemu-devel] [PATCH] tests: add missing include Marc-André Lureau
2015-06-24 12:39 ` Andreas Färber
2015-06-24 14:13   ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).