tests: add missing include
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 22 Jan 2017 13:50:42 +0000 (14:50 +0100)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 23 Jan 2017 12:12:06 +0000 (14:12 +0200)
The int32_t type is defined in stdint.h.

The musl C library is very conservative in the headers that it
internally includes, and stdint.h is not included by any other header,
unlike with glibc or uClibc, which breaks the build.

Add the missing header.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
tests/string-test.c

index a72ec30..5571b52 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdlib.h>
 #include <stdbool.h>
 #include <stdio.h>
+#include <stdint.h>
 #include <assert.h>
 
 #include "shared/string-helpers.h"