summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean GUYOMARC'H <jean.guyomarch@gmail.com>2013-08-09 10:41:46 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-08-09 10:42:30 +0900
commit4b23dc8816707cebb304375da8f5e974d30fd8bd (patch)
tree751ebc5cb4e6d9e3673718ccfdfe3d5f6b49f04d
parent3fcaad12edc84684e1c09f5aacc6f6f81e91601a (diff)
terminology: fix build of terminology on MacOS X.
-rw-r--r--src/bin/termptysave.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/termptysave.c b/src/bin/termptysave.c
index 3d6e11c..04c2e70 100644
--- a/src/bin/termptysave.c
+++ b/src/bin/termptysave.c
@@ -5,6 +5,12 @@
5#include "lz4/lz4.h" 5#include "lz4/lz4.h"
6#include <sys/mman.h> 6#include <sys/mman.h>
7 7
8#if defined (__MacOSX__) || (defined (__MACH__) && defined (__APPLE__))
9# ifndef MAP_ANONYMOUS
10# define MAP_ANONYMOUS MAP_ANON
11# endif
12#endif
13
8#define MEM_PAGE_SIZE 4096 14#define MEM_PAGE_SIZE 4096
9#define MEM_ALLOC_ALIGN 16 15#define MEM_ALLOC_ALIGN 16
10#define MEM_BLOCK_PAGES 32 16#define MEM_BLOCK_PAGES 32