WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] gtraceview: compile fixes for NetBSD.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] gtraceview: compile fixes for NetBSD.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 02 Jul 2009 08:51:14 -0700
Delivery-date: Thu, 02 Jul 2009 08:57:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] gtraceview: compile fixes for NetBSD., Xen patchbot-unstable <=