Skip to contentSkip to conversation

xenstat/xenstore: NetBSD specific pieces

PATCH New Christoph Egger 1 participant 1 message Sep 24, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xenstat/xenstore: NetBSD specific pieces

Hi!

Attached patch adds NetBSD specific pieces to xenstat and xenstore.

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
config/NetBSD.mk +3 -0
diff -r e73ea74cba30 config/NetBSD.mk
@@ -1,1 +1,4 @@ include $(XEN_ROOT)/config/StdGNU.mk
 include $(XEN_ROOT)/config/StdGNU.mk
+
+# Override settings for this OS
+CURSES_LIBS = -lcurses
tools/xenstat/libxenstat/Makefile +1 -0
diff -r e73ea74cba30 tools/xenstat/libxenstat/Makefile
@@ -31,6 +31,7 @@ OBJECTS-y=src/xenstat.o
 OBJECTS-y=src/xenstat.o
 OBJECTS-$(CONFIG_Linux) += src/xenstat_linux.o
 OBJECTS-$(CONFIG_SunOS) += src/xenstat_solaris.o
+OBJECTS-$(CONFIG_NetBSD) += src/xenstat_netbsd.o
 SONAME_FLAGS=-Wl,$(SONAME_LDFLAG) -Wl,libxenstat.so.$(MAJOR)
 
 WARN_FLAGS=-Wall -Werror
tools/xenstat/libxenstat/src/xenstat_netbsd.c new file +97 -0

97 lines not on this page · raw message

tools/xenstat/xentop/xentop.c +3 -1
diff -r e73ea74cba30 tools/xenstat/xentop/xentop.c
@@ -28,7 +28,9 @@
 #include <sys/time.h>
 #include <time.h>
 #include <unistd.h>
+#if defined(__linux__) || defined(__Linux__)
 #include <linux/kdev_t.h>
+#endif
 
 #include <xenstat.h>
 
@@ -938,7 +940,7 @@ void do_vbd(xenstat_domain *domain)
 
 		vbd = xenstat_domain_vbd(domain,i);
 
-#ifdef __sun__
+#if defined(__sun__) || defined(__NetBSD__) || defined(__OpenBSD__)
 		details[0] = '\0';
 #else
 		snprintf(details, 20, "[%2x:%2x] ", MAJOR(xenstat_vbd_dev(vbd)),
tools/xenstore/Makefile +1 -0
diff -r e73ea74cba30 tools/xenstore/Makefile
@@ -25,6 +25,7 @@ XENSTORED_OBJS = xenstored_core.o xensto
 
 XENSTORED_OBJS_$(CONFIG_Linux) = xenstored_linux.o
 XENSTORED_OBJS_$(CONFIG_SunOS) = xenstored_solaris.o
+XENSTORED_OBJS_$(CONFIG_NetBSD) = xenstored_netbsd.o
 
 XENSTORED_OBJS += $(XENSTORED_OBJS_y)
 
tools/xenstore/xenstored_netbsd.c new file +73 -0

73 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel