Source-Changes-HG archive

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

[src/trunk]: src/lib/librumpuser Refine previous: sys/sysmacros.h is where MI...



details:   https://anonhg.NetBSD.org/src/rev/9aaf85a3e5e9
branches:  trunk
changeset: 785464:9aaf85a3e5e9
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Mar 14 21:31:35 2013 +0000

description:
Refine previous: sys/sysmacros.h is where MIN/MAX comes from on Solaris,
so it needs to be included unconditionally.

diffstat:

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

diffs (29 lines):

diff -r 96e8bc35f2a9 -r 9aaf85a3e5e9 lib/librumpuser/rumpuser_port.h
--- a/lib/librumpuser/rumpuser_port.h   Thu Mar 14 20:42:57 2013 +0000
+++ b/lib/librumpuser/rumpuser_port.h   Thu Mar 14 21:31:35 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpuser_port.h,v 1.13 2013/03/14 20:42:57 pooka Exp $ */
+/*     $NetBSD: rumpuser_port.h,v 1.14 2013/03/14 21:31:35 pooka Exp $ */
 
 /*
  * Portability header for non-NetBSD platforms.
@@ -76,9 +76,10 @@
 }
 #endif
 
-#if defined(__sun__) && !defined(HAVE_POSIX_MEMALIGN)
+#if defined(__sun__)
 #include <sys/sysmacros.h>
 
+#if !defined(HAVE_POSIX_MEMALIGN)
 /* Solarisa 10 has memalign() but no posix_memalign() */
 #include <stdlib.h>
 
@@ -91,6 +92,7 @@
                return ENOMEM;
        return 0;
 }
+#endif /* !HAVE_POSIX_MEMALIGN */
 #endif /* __sun__ */
 
 #ifndef __RCSID



Home | Main Index | Thread Index | Old Index