Browse Source

tal: fix compilation of speed benchmark.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell 13 years ago
parent
commit
769352e921
2 changed files with 4 additions and 1 deletions
  1. 3 1
      ccan/tal/benchmark/Makefile
  2. 1 0
      ccan/tal/benchmark/speed.c

+ 3 - 1
ccan/tal/benchmark/Makefile

@@ -6,11 +6,13 @@ LDLIBS=-lrt
 
 
 all: speed samba-allocs
 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
 samba-allocs: samba-allocs.o tal.o talloc.o time.o list.o take.o
 
 
 tal.o: ../tal.c
 tal.o: ../tal.c
 	$(CC) $(CFLAGS) -c -o $@ $<
 	$(CC) $(CFLAGS) -c -o $@ $<
+str.o: ../str/str.c
+	$(CC) $(CFLAGS) -c -o $@ $<
 talloc.o: ../../talloc/talloc.c
 talloc.o: ../../talloc/talloc.c
 	$(CC) $(CFLAGS) -c -o $@ $<
 	$(CC) $(CFLAGS) -c -o $@ $<
 time.o: ../../time/time.c
 time.o: ../../time/time.c

+ 1 - 0
ccan/tal/benchmark/speed.c

@@ -24,6 +24,7 @@
 */
 */
 #include <ccan/talloc/talloc.h>
 #include <ccan/talloc/talloc.h>
 #include <ccan/tal/tal.h>
 #include <ccan/tal/tal.h>
+#include <ccan/tal/str/str.h>
 #include <ccan/time/time.h>
 #include <ccan/time/time.h>
 #include <ccan/err/err.h>
 #include <ccan/err/err.h>
 #include <string.h>
 #include <string.h>