Include sys/sysmacros.h on solaris for MIN/MAX.

This commit is contained in:
pooka 2013-01-17 21:42:22 +00:00
parent fb6275b470
commit 16280deed5
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rumpuser_port.h,v 1.11 2013/01/14 21:00:16 pooka Exp $ */ /* $NetBSD: rumpuser_port.h,v 1.12 2013/01/17 21:42:22 pooka Exp $ */
/* /*
* Portability header for non-NetBSD platforms. * Portability header for non-NetBSD platforms.
@ -76,8 +76,10 @@ getenv_r(const char *name, char *buf, size_t buflen)
} }
#endif #endif
/* Solarisa 10 has memalign() but no posix_memalign() */
#if defined(__sun__) #if defined(__sun__)
#include <sys/sysmacros.h>
/* Solarisa 10 has memalign() but no posix_memalign() */
#include <stdlib.h> #include <stdlib.h>
static inline int static inline int