* lib-mem.c: add pre-include macros to get mmap and valloc on OpenSolaris.

This commit is contained in:
Sam Hocevar
2008-07-16 21:45:44 +00:00
committed by sam
parent c11d1067a2
commit 088d6f66e8
+4
View File
@@ -26,6 +26,10 @@
#define _LARGEFILE64_SOURCE
/* Use this to get ENOMEM on HP-UX */
#define _INCLUDE_POSIX_SOURCE
/* Need this to get standard mmap() on OpenSolaris */
#define _POSIX_C_SOURCE 3
/* Need this to get valloc() on OpenSolaris */
#define __EXTENSIONS__
/* Use this to get posix_memalign */
#if defined HAVE_POSIX_MEMALIGN
# define _XOPEN_SOURCE 600