Module Name:    src
Committed By:   pooka
Date:           Wed Oct 30 12:30:32 UTC 2013

Modified Files:
        src/lib/librumpuser: rumpuser_dl.c

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

from Justin Cormack


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/lib/librumpuser/rumpuser_dl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/librumpuser/rumpuser_dl.c
diff -u src/lib/librumpuser/rumpuser_dl.c:1.22 src/lib/librumpuser/rumpuser_dl.c:1.23
--- src/lib/librumpuser/rumpuser_dl.c:1.22	Sun Oct 27 16:39:46 2013
+++ src/lib/librumpuser/rumpuser_dl.c	Wed Oct 30 12:30:32 2013
@@ -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 @@ do {									\
  * 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_) \

Reply via email to