Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/include/rump add simple compat for other OSs to be ...



details:   https://anonhg.NetBSD.org/src/rev/a3dbed70080a
branches:  trunk
changeset: 780322:a3dbed70080a
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Jul 20 09:10:23 2012 +0000

description:
add simple compat for other OSs to be able to use rump_syscalls.h

diffstat:

 sys/rump/include/rump/rump_syscalls_compat.h |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 606d837763c6 -r a3dbed70080a sys/rump/include/rump/rump_syscalls_compat.h
--- a/sys/rump/include/rump/rump_syscalls_compat.h      Fri Jul 20 09:03:09 2012 +0000
+++ b/sys/rump/include/rump/rump_syscalls_compat.h      Fri Jul 20 09:10:23 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump_syscalls_compat.h,v 1.7 2011/01/17 18:24:17 pooka Exp $   */
+/*     $NetBSD: rump_syscalls_compat.h,v 1.8 2012/07/20 09:10:23 pooka Exp $   */
 
 /*-
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -28,8 +28,8 @@
 #ifndef _RUMP_RUMP_SYSCALLS_COMPAT_H_
 #define _RUMP_RUMP_SYSCALLS_COMPAT_H_
 
-#ifndef _KERNEL
 #ifdef __NetBSD__
+#include <sys/cdefs.h>
 #include <sys/param.h>
 
 /* time_t change */
@@ -51,7 +51,13 @@
 #define RUMP_SYS_RENAME_FHSTAT rump___sysimpl_fhstat40
 #endif /* __NetBSD_Prereq(5,99,7) */
 
+#else /* !__NetBSD__ */
+
+#ifndef __RENAME
+#define __RUMPSTRINGIFY(x) #x
+#define __RENAME(x) __asm(__RUMPSTRINGIFY(x))
+#endif /* __RENAME */
+
 #endif /* __NetBSD__ */
-#endif /* _KERNEL */
 
 #endif /* _RUMP_RUMP_SYSCALLS_COMPAT_H_ */



Home | Main Index | Thread Index | Old Index