tal: fix compilation of speed benchmark.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 14 Dec 2012 20:57:19 +0000 (07:27 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 14 Dec 2012 20:57:19 +0000 (07:27 +1030)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tal/benchmark/Makefile
ccan/tal/benchmark/speed.c

index aafe6c7b47d708ad95d0b0006c76a5732009993f..f1e8502b3f3b968d96bad88f7388698e4da930ef 100644 (file)
@@ -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
index 0b4815fed4b82598fca562072f6df14a9c338f4e..0b5b246f2dc3b1ffac261b61bf1990b3a2474703 100644 (file)
@@ -24,6 +24,7 @@
 */
 #include <ccan/talloc/talloc.h>
 #include <ccan/tal/tal.h>
+#include <ccan/tal/str/str.h>
 #include <ccan/time/time.h>
 #include <ccan/err/err.h>
 #include <string.h>