Fix xen-detect build.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 8 Feb 2007 17:07:36 +0000 (17:07 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 8 Feb 2007 17:07:36 +0000 (17:07 +0000)
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/misc/Makefile
tools/misc/xen-detect.c

index 494ebc95ec7ae8f4a870eef6835d340939c1af4a..dce732f27305b82e0cf381e3a2a8e60ccfe3eddf 100644 (file)
@@ -41,5 +41,5 @@ clean:
 %.o: %.c $(HDRS) Makefile
        $(CC) -c $(CFLAGS) -o $@ $<
 
-$(TARGETS): %: %.o Makefile
+xenperf xc_shadow: %: %.o Makefile
        $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl
index 6ac23f4453a16b74420155a0f90e23cab56539c5..c918945f812a781a06d623fe30d1bde93bc21939 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <stdint.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
 #include <sys/wait.h>