cedric pushed a commit to branch master.

commit 4b23dc8816707cebb304375da8f5e974d30fd8bd
Author: Jean GUYOMARC'H <[email protected]>
Date:   Fri Aug 9 10:41:46 2013 +0900

    terminology: fix build of terminology on MacOS X.
---
 src/bin/termptysave.c | 6 ++++++
 1 file changed, 6 insertions(+)

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 @@
 #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

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to