Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumpclient Provide register_t compat on solarisa.



details:   https://anonhg.NetBSD.org/src/rev/f6a707669f08
branches:  trunk
changeset: 784165:f6a707669f08
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Jan 20 15:23:21 2013 +0000

description:
Provide register_t compat on solarisa.
(would be nice to handle register_t compat internally instead, but the
interface was already exposed in a release)

diffstat:

 lib/librumpclient/rumpclient.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 8b4b5e191c90 -r f6a707669f08 lib/librumpclient/rumpclient.h
--- a/lib/librumpclient/rumpclient.h    Sun Jan 20 14:08:40 2013 +0000
+++ b/lib/librumpclient/rumpclient.h    Sun Jan 20 15:23:21 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpclient.h,v 1.14 2013/01/17 22:16:59 pooka Exp $    */
+/*     $NetBSD: rumpclient.h,v 1.15 2013/01/20 15:23:21 pooka Exp $    */
 
 /*-
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -38,6 +38,11 @@
 #endif /* !__GNUC__ */
 #endif /* !__returns_twice */
 
+#if defined(__sun__) && !defined(RUMP_REGISTER_T)
+#define RUMP_REGISTER_T long
+typedef RUMP_REGISTER_T register_t;
+#endif
+
 struct rumpclient_fork;
 
 #define rumpclient_vfork() rumpclient__dofork(vfork)



Home | Main Index | Thread Index | Old Index