Module Name:    src
Committed By:   pooka
Date:           Thu Mar 14 20:42:57 UTC 2013

Modified Files:
        src/lib/librumpuser: rumpuser_port.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/librumpuser/rumpuser_port.h

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_port.h
diff -u src/lib/librumpuser/rumpuser_port.h:1.12 src/lib/librumpuser/rumpuser_port.h:1.13
--- src/lib/librumpuser/rumpuser_port.h:1.12	Thu Jan 17 21:42:22 2013
+++ src/lib/librumpuser/rumpuser_port.h	Thu Mar 14 20:42:57 2013
@@ -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 @@ getenv_r(const char *name, char *buf, si
 }
 #endif
 
-#if defined(__sun__)
+#if defined(__sun__) && !defined(HAVE_POSIX_MEMALIGN)
 #include <sys/sysmacros.h>
 
 /* Solarisa 10 has memalign() but no posix_memalign() */

Reply via email to