Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src export register_t to rump kernel users on solaris
details: https://anonhg.NetBSD.org/src/rev/d0866743161a
branches: trunk
changeset: 782814:d0866743161a
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Nov 21 17:41:27 2012 +0000
description:
export register_t to rump kernel users on solaris
diffstat:
lib/librumpuser/rumpuser_port.h | 11 ++++++-----
sys/rump/include/rump/rump.h | 7 ++++++-
2 files changed, 12 insertions(+), 6 deletions(-)
diffs (51 lines):
diff -r 37c6925dd69f -r d0866743161a lib/librumpuser/rumpuser_port.h
--- a/lib/librumpuser/rumpuser_port.h Wed Nov 21 17:36:17 2012 +0000
+++ b/lib/librumpuser/rumpuser_port.h Wed Nov 21 17:41:27 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser_port.h,v 1.4 2012/11/18 19:29:40 pooka Exp $ */
+/* $NetBSD: rumpuser_port.h,v 1.5 2012/11/21 17:41:27 pooka Exp $ */
/*
* Portability header for non-NetBSD platforms.
@@ -15,10 +15,6 @@
#ifndef _LIB_LIBRUMPUSER_RUMPUSER_PORT_H_
#define _LIB_LIBRUMPUSER_RUMPUSER_PORT_H_
-#ifdef __sun__
-typedef long register_t;
-#endif
-
#ifdef __NetBSD__
#include <sys/cdefs.h>
#include <sys/param.h>
@@ -168,4 +164,9 @@
#define MSG_NOSIGNAL 0
#endif
+#if defined(__sun__) && !defined(RUMP_REGISTER_T)
+#define RUMP_REGISTER_T long
+typedef RUMP_REGISTER_T register_t;
+#endif
+
#endif /* _LIB_LIBRUMPUSER_RUMPUSER_PORT_H_ */
diff -r 37c6925dd69f -r d0866743161a sys/rump/include/rump/rump.h
--- a/sys/rump/include/rump/rump.h Wed Nov 21 17:36:17 2012 +0000
+++ b/sys/rump/include/rump/rump.h Wed Nov 21 17:41:27 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump.h,v 1.54 2012/07/20 09:27:11 pooka Exp $ */
+/* $NetBSD: rump.h,v 1.55 2012/11/21 17:41:27 pooka Exp $ */
/*
* Copyright (c) 2007-2011 Antti Kantee. All Rights Reserved.
@@ -57,6 +57,11 @@
#endif
#endif /* __NetBSD__ */
+#if defined(__sun__) && !defined(RUMP_REGISTER_T)
+#define RUMP_REGISTER_T long
+typedef RUMP_REGISTER_T register_t;
+#endif
+
#include <rump/rumpvnode_if.h>
#include <rump/rumpdefs.h>
Home |
Main Index |
Thread Index |
Old Index