Module Name: src Committed By: pooka Date: Thu Jan 17 21:12:39 UTC 2013
Modified Files: src/sys/rump/include/rump: rump_syscalls_compat.h Log Message: For non-NetBSD, assume leading underscore with !__ELF__ (fixes PE-COFF) To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 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.8 src/sys/rump/include/rump/rump_syscalls_compat.h:1.9 --- src/sys/rump/include/rump/rump_syscalls_compat.h:1.8 Fri Jul 20 09:10:23 2012 +++ src/sys/rump/include/rump/rump_syscalls_compat.h Thu Jan 17 21:12:39 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: rump_syscalls_compat.h,v 1.8 2012/07/20 09:10:23 pooka Exp $ */ +/* $NetBSD: rump_syscalls_compat.h,v 1.9 2013/01/17 21:12:39 pooka Exp $ */ /*- * Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved. @@ -54,7 +54,11 @@ #else /* !__NetBSD__ */ #ifndef __RENAME +#ifdef __ELF #define __RUMPSTRINGIFY(x) #x +#else +#define __RUMPSTRINGIFY(x) "_"#x +#endif /* __ELF__ */ #define __RENAME(x) __asm(__RUMPSTRINGIFY(x)) #endif /* __RENAME */