* lib-mem.c: with all the preprocessor crap that we now have in C files,

libc.h no longer cleanly includes on OS X and we need more preprocessor
    crap to fix it. Adding _DARWIN_C_SOURCE.
This commit is contained in:
Sam Hocevar 2008-07-20 10:10:31 +00:00 committed by sam
parent 7778db7386
commit 29e4f4b339

View File

@ -33,6 +33,8 @@
#define _POSIX_C_SOURCE 3
/* Need this to get valloc() on OpenSolaris */
#define __EXTENSIONS__
/* Need this to include <libc.h> on OS X */
#define _DARWIN_C_SOURCE
/* Use this to get posix_memalign */
#if defined HAVE_POSIX_MEMALIGN
# define _XOPEN_SOURCE 600