Module Name: src Committed By: pooka Date: Fri Jul 20 09:10:23 UTC 2012
Modified Files: src/sys/rump/include/rump: rump_syscalls_compat.h Log Message: add simple compat for other OSs to be able to use rump_syscalls.h To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/rump/include/rump/rump_syscalls_compat.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/include/rump/rump_syscalls_compat.h diff -u src/sys/rump/include/rump/rump_syscalls_compat.h:1.7 src/sys/rump/include/rump/rump_syscalls_compat.h:1.8 --- src/sys/rump/include/rump/rump_syscalls_compat.h:1.7 Mon Jan 17 18:24:17 2011 +++ src/sys/rump/include/rump/rump_syscalls_compat.h Fri Jul 20 09:10:23 2012 @@ -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_ */