Message ID | 20170802201512.29142-4-crosa@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi Cleber, On 08/02/2017 05:15 PM, Cleber Rosa wrote: > A include for <sys/resources.h> is missing, and prevents > tests/tcg/linux-test from compiling. getrusage() I presume, don't know if worth adding in commit message. > > Signed-off-by: Cleber Rosa <crosa@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> > --- > tests/tcg/linux-test.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tests/tcg/linux-test.c b/tests/tcg/linux-test.c > index 1c6c013..15c9d7f 100644 > --- a/tests/tcg/linux-test.c > +++ b/tests/tcg/linux-test.c > @@ -39,6 +39,7 @@ > #include <dirent.h> > #include <setjmp.h> > #include <sys/shm.h> > +#include <sys/resource.h> > > #define TESTPATH "/tmp/linux-test.tmp" > #define TESTPORT 7654 >
On Wed, Aug 2, 2017 at 6:28 PM, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote: > Hi Cleber, > > On 08/02/2017 05:15 PM, Cleber Rosa wrote: >> >> A include for <sys/resources.h> is missing, and prevents >> tests/tcg/linux-test from compiling. > > > getrusage() I presume, don't know if worth adding in commit message. Sorry I missed it from the commit subject :/ > >> >> Signed-off-by: Cleber Rosa <crosa@redhat.com> > > > Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> > > >> --- >> tests/tcg/linux-test.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/tests/tcg/linux-test.c b/tests/tcg/linux-test.c >> index 1c6c013..15c9d7f 100644 >> --- a/tests/tcg/linux-test.c >> +++ b/tests/tcg/linux-test.c >> @@ -39,6 +39,7 @@ >> #include <dirent.h> >> #include <setjmp.h> >> #include <sys/shm.h> >> +#include <sys/resource.h> >> #define TESTPATH "/tmp/linux-test.tmp" >> #define TESTPORT 7654 >> >
diff --git a/tests/tcg/linux-test.c b/tests/tcg/linux-test.c index 1c6c013..15c9d7f 100644 --- a/tests/tcg/linux-test.c +++ b/tests/tcg/linux-test.c @@ -39,6 +39,7 @@ #include <dirent.h> #include <setjmp.h> #include <sys/shm.h> +#include <sys/resource.h> #define TESTPATH "/tmp/linux-test.tmp" #define TESTPORT 7654
A include for <sys/resources.h> is missing, and prevents tests/tcg/linux-test from compiling. Signed-off-by: Cleber Rosa <crosa@redhat.com> --- tests/tcg/linux-test.c | 1 + 1 file changed, 1 insertion(+)