[yocto] [ptest-runner 2/8] Add missing stdint.h

Jiwei Sun jiwei.sun at windriver.com
Thu Sep 28 19:09:34 PDT 2017


$ make check
cc -std=gnu99 -pedantic -Wall -Werror -I . -g -c tests/ptest_list.c -o tests/ptest_list.o
In file included from tests/ptest_list.c:25:0:
tests/ptest_list.c: In function ‘test_length’:
tests/ptest_list.c:85:2: error: unknown type name ‘intmax_t’
ck_assert_int_eq(ptest_list_length(head), ptests_num);
^
tests/ptest_list.c:85:2: error: unknown type name ‘intmax_t’
ck_assert_int_eq(ptest_list_length(head), ptests_num);

Signed-off-by: Jiwei Sun <jiwei.sun at windriver.com>
---
 tests/ptest_list.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/ptest_list.c b/tests/ptest_list.c
index 5c0036d..2641620 100644
--- a/tests/ptest_list.c
+++ b/tests/ptest_list.c
@@ -21,6 +21,7 @@
 
 #include <string.h>
 #include <stdlib.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <check.h>
 #include <errno.h>
-- 
1.8.3.1




More information about the yocto mailing list