Source-Changes-HG archive

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

[src/trunk]: src/lib/librumpuser StunOS >= 5.11 has posix_memalign(), so add ...



details:   https://anonhg.NetBSD.org/src/rev/96e8bc35f2a9
branches:  trunk
changeset: 785463:96e8bc35f2a9
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Mar 14 20:42:57 2013 +0000

description:
StunOS >= 5.11 has posix_memalign(), so add an additional constraint for
when we need to emulate it with memalign() and when not.

diffstat:

 lib/librumpuser/rumpuser_port.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 08d5e9eebb64 -r 96e8bc35f2a9 lib/librumpuser/rumpuser_port.h
--- a/lib/librumpuser/rumpuser_port.h   Thu Mar 14 20:06:38 2013 +0000
+++ b/lib/librumpuser/rumpuser_port.h   Thu Mar 14 20:42:57 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpuser_port.h,v 1.12 2013/01/17 21:42:22 pooka Exp $ */
+/*     $NetBSD: rumpuser_port.h,v 1.13 2013/03/14 20:42:57 pooka Exp $ */
 
 /*
  * Portability header for non-NetBSD platforms.
@@ -76,7 +76,7 @@
 }
 #endif
 
-#if defined(__sun__)
+#if defined(__sun__) && !defined(HAVE_POSIX_MEMALIGN)
 #include <sys/sysmacros.h>
 
 /* Solarisa 10 has memalign() but no posix_memalign() */



Home | Main Index | Thread Index | Old Index