From: Rusty Russell Date: Fri, 14 Dec 2012 20:57:19 +0000 (+1030) Subject: tal: fix compilation of speed benchmark. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=769352e9214082c50635d7fe0b32175a267afa8d;ds=sidebyside tal: fix compilation of speed benchmark. Signed-off-by: Rusty Russell --- diff --git a/ccan/tal/benchmark/Makefile b/ccan/tal/benchmark/Makefile index aafe6c7b..f1e8502b 100644 --- a/ccan/tal/benchmark/Makefile +++ b/ccan/tal/benchmark/Makefile @@ -6,11 +6,13 @@ LDLIBS=-lrt all: speed samba-allocs -speed: speed.o tal.o talloc.o time.o list.o take.o +speed: speed.o tal.o talloc.o time.o list.o take.o str.o samba-allocs: samba-allocs.o tal.o talloc.o time.o list.o take.o tal.o: ../tal.c $(CC) $(CFLAGS) -c -o $@ $< +str.o: ../str/str.c + $(CC) $(CFLAGS) -c -o $@ $< talloc.o: ../../talloc/talloc.c $(CC) $(CFLAGS) -c -o $@ $< time.o: ../../time/time.c diff --git a/ccan/tal/benchmark/speed.c b/ccan/tal/benchmark/speed.c index 0b4815fe..0b5b246f 100644 --- a/ccan/tal/benchmark/speed.c +++ b/ccan/tal/benchmark/speed.c @@ -24,6 +24,7 @@ */ #include #include +#include #include #include #include