[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] gtraceview: compile fixes for NetBSD.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1246530977 -3600 # Node ID 653c2c5f4594958afe43c152ce0a899b17261388 # Parent 8d525e5f50dcb526f5a8f627b0da644811e13f66 gtraceview: compile fixes for NetBSD. Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx> --- tools/misc/Makefile | 2 +- tools/misc/gtraceview.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff -r 8d525e5f50dc -r 653c2c5f4594 tools/misc/Makefile --- a/tools/misc/Makefile Thu Jul 02 11:35:30 2009 +0100 +++ b/tools/misc/Makefile Thu Jul 02 11:36:17 2009 +0100 @@ -57,6 +57,6 @@ xenperf xenpm gtracestat: %: %.o Makefil $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDFLAGS_libxenctrl) gtraceview: %: %.o Makefile - $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -lncurses + $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CURSES_LIBS) -include $(DEPS) diff -r 8d525e5f50dc -r 653c2c5f4594 tools/misc/gtraceview.c --- a/tools/misc/gtraceview.c Thu Jul 02 11:35:30 2009 +0100 +++ b/tools/misc/gtraceview.c Thu Jul 02 11:36:17 2009 +0100 @@ -19,6 +19,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <stdarg.h> #include <unistd.h> #include <fcntl.h> #include <inttypes.h> @@ -29,7 +30,12 @@ #include <xenctrl.h> #include <xen/trace.h> +#ifdef __Linux__ #include <ncurses.h> +#endif +#ifdef __NetBSD__ +#include <curses.h> +#endif /********** MACROS **********/ #define MAX_CPU_NR 32 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |