Source-Changes-HG archive

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

[src/trunk]: src/lib/librumpuser glibc on MIPS uses the same DYN d_ptr varian...



details:   https://anonhg.NetBSD.org/src/rev/c9a34757727d
branches:  trunk
changeset: 791003:c9a34757727d
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Oct 30 12:30:32 2013 +0000

description:
glibc on MIPS uses the same DYN d_ptr variant as NetBSD and musl.

from Justin Cormack

diffstat:

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

diffs (28 lines):

diff -r 3ad54f5029b3 -r c9a34757727d lib/librumpuser/rumpuser_dl.c
--- a/lib/librumpuser/rumpuser_dl.c     Wed Oct 30 08:42:45 2013 +0000
+++ b/lib/librumpuser/rumpuser_dl.c     Wed Oct 30 12:30:32 2013 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpuser_dl.c,v 1.22 2013/10/27 16:39:46 rmind Exp $  */
+/*      $NetBSD: rumpuser_dl.c,v 1.23 2013/10/30 12:30:32 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.22 2013/10/27 16:39:46 rmind Exp $");
+__RCSID("$NetBSD: rumpuser_dl.c,v 1.23 2013/10/30 12:30:32 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -150,8 +150,7 @@
  * On Solaris and DragonFly / FreeBSD, the main object works differently
  * ... uuuuh.
  */
-#if defined(__GLIBC__)
-/* XXX: not true for e.g. MIPS, but we'll cross that hurdle later */
+#if defined(__GLIBC__) && !defined(__mips__)
 #define adjptr(_map_, _ptr_) ((void *)(_ptr_))
 #elif defined(__sun__) || defined(__DragonFly__) || defined(__FreeBSD__)
 #define adjptr(_map_, _ptr_) \



Home | Main Index | Thread Index | Old Index