Source-Changes-HG archive

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

[src/trunk]: src/lib/librumpuser FreeBSD does the Solaris-like map->l_addr bo...



details:   https://anonhg.NetBSD.org/src/rev/30f912c5c936
branches:  trunk
changeset: 787156:30f912c5c936
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Jun 04 15:17:28 2013 +0000

description:
FreeBSD does the Solaris-like map->l_addr boogie.

from Ben Gras

diffstat:

 lib/librumpuser/rumpuser_dl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 64e2dbec4e55 -r 30f912c5c936 lib/librumpuser/rumpuser_dl.c
--- a/lib/librumpuser/rumpuser_dl.c     Tue Jun 04 14:54:34 2013 +0000
+++ b/lib/librumpuser/rumpuser_dl.c     Tue Jun 04 15:17:28 2013 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpuser_dl.c,v 1.18 2013/04/29 18:00:20 pooka Exp $  */
+/*      $NetBSD: rumpuser_dl.c,v 1.19 2013/06/04 15:17:28 pooka Exp $  */
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -40,7 +40,7 @@
 #include "rumpuser_port.h"
 
 #if !defined(lint)
-__RCSID("$NetBSD: rumpuser_dl.c,v 1.18 2013/04/29 18:00:20 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_dl.c,v 1.19 2013/06/04 15:17:28 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -151,7 +151,7 @@
  */
 #if defined(__linux__)
 #define adjptr(_map_, _ptr_) ((void *)(_ptr_))
-#elif defined(__sun__) || defined(__DragonFly__)
+#elif defined(__sun__) || defined(__DragonFly__) || defined(__FreeBSD__)
 #define adjptr(_map_, _ptr_) \
     (ismainobj ? (void *)(_ptr_) : (void *)(_map_->l_addr + (_ptr_)))
 #else



Home | Main Index | Thread Index | Old Index