diff mbox

[3/6] tests/tcg/linux-test.c: include definitions for getrusage()

Message ID 20170802201512.29142-4-crosa@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Cleber Rosa Aug. 2, 2017, 8:15 p.m. UTC
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(+)

Comments

Philippe Mathieu-Daudé Aug. 2, 2017, 9:28 p.m. UTC | #1
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
>
Philippe Mathieu-Daudé Aug. 2, 2017, 9:37 p.m. UTC | #2
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 mbox

Patch

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