[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] examples: uptime: include stdint.h before cmocka.h


Fixes a build error encountered on one MIPS64 toolchain about uintptr_t
being declared twice, first by cmocka.h and then later by the toolchains
stdint.h.

Signed-off-by: Joel Carlson <JoelsonCarl@xxxxxxxxx>
---
 example/mock/uptime/test_uptime.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/example/mock/uptime/test_uptime.c b/example/mock/uptime/test_uptime.c
index badfac9..183c276 100644
--- a/example/mock/uptime/test_uptime.c
+++ b/example/mock/uptime/test_uptime.c
@@ -16,6 +16,7 @@
 
 #include <stdarg.h>
 #include <stddef.h>
+#include <stdint.h>
 #include <setjmp.h>
 #include <cmocka.h>
 
-- 
2.17.1