lib-mem.c: undefine various feature macros before redefining them.

This commit is contained in:
Sam Hocevar
2009-08-06 20:36:58 +00:00
committed by sam
parent 24e64e5eda
commit f1639a47c4

View File

@@ -26,10 +26,12 @@
# include <sys/cdefs.h>
#endif
/* Use this to get mmap64() on glibc systems */
#undef _LARGEFILE64_SOURCE
#define _LARGEFILE64_SOURCE
/* Use this to get ENOMEM on HP-UX */
#define _INCLUDE_POSIX_SOURCE
/* Need this to get standard mmap() on OpenSolaris */
#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 3
/* Need this to get valloc() on OpenSolaris */
#define __EXTENSIONS__