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 For non-NetBSD, assume leading undersc...



details:   https://anonhg.NetBSD.org/src/rev/a4d762342ea0
branches:  trunk
changeset: 784081:a4d762342ea0
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Jan 17 21:12:39 2013 +0000

description:
For non-NetBSD, assume leading underscore with !__ELF__ (fixes PE-COFF)

diffstat:

 sys/rump/include/rump/rump_syscalls_compat.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 57b4a563a412 -r a4d762342ea0 sys/rump/include/rump/rump_syscalls_compat.h
--- a/sys/rump/include/rump/rump_syscalls_compat.h      Thu Jan 17 20:47:44 2013 +0000
+++ b/sys/rump/include/rump/rump_syscalls_compat.h      Thu Jan 17 21:12:39 2013 +0000
@@ -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 */
 



Home | Main Index | Thread Index | Old Index