From 3fa2687d72239b458cd1d3753842402cda1d1b90 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 20 May 2011 15:29:42 -0400 Subject: [PATCH] Fix make check includes Signed-off-by: Mathieu Desnoyers --- tests/simple_include/simple_include.c | 3 ++- tests/snprintf/Makefile.am | 2 ++ tests/snprintf/prog.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/simple_include/simple_include.c b/tests/simple_include/simple_include.c index 75c68644..ccf14ce9 100644 --- a/tests/simple_include/simple_include.c +++ b/tests/simple_include/simple_include.c @@ -15,6 +15,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include +#include +#include int main () { return 0; } diff --git a/tests/snprintf/Makefile.am b/tests/snprintf/Makefile.am index 809531b1..734ab18a 100644 --- a/tests/snprintf/Makefile.am +++ b/tests/snprintf/Makefile.am @@ -1,3 +1,5 @@ +AM_CPPFLAGS = -I$(top_srcdir)/include + check_PROGRAMS = prog prog_SOURCES = prog.c prog_LDADD = $(top_builddir)/snprintf/libustsnprintf.la diff --git a/tests/snprintf/prog.c b/tests/snprintf/prog.c index ac888b58..dd0b04f8 100644 --- a/tests/snprintf/prog.c +++ b/tests/snprintf/prog.c @@ -17,11 +17,11 @@ #include #include +#include "ust_snprintf.h" int main() { char buf[100]; - char *expected; expected = "header 9999, hello, 005, ' 9'"; -- 2.34.1