terminology: fix build of terminology on MacOS X.

This commit is contained in:
Jean GUYOMARC'H 2013-08-09 10:41:46 +09:00 committed by Cedric Bail
parent 3fcaad12ed
commit 4b23dc8816
1 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,12 @@
#include "lz4/lz4.h"
#include <sys/mman.h>
#if defined (__MacOSX__) || (defined (__MACH__) && defined (__APPLE__))
# ifndef MAP_ANONYMOUS
# define MAP_ANONYMOUS MAP_ANON
# endif
#endif
#define MEM_PAGE_SIZE 4096
#define MEM_ALLOC_ALIGN 16
#define MEM_BLOCK_PAGES 32