diff --git a/CMakeLists.txt b/CMakeLists.txt index c0fea1a1..86b5d27b 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,14 @@ else() option(USE_NACL "Use NaCl library instead of libsodium") endif() +#OS X specific +if(APPLE) + set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} /opt/local/lib) + set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} /opt/local/include) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I/opt/local/include" ) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L/opt/local/lib") +endif() + if(UNIX) find_package(Curses REQUIRED) endif() diff --git a/auto_tests/friends_test.c b/auto_tests/friends_test.c index 6c7569be..0ba42b61 100755 --- a/auto_tests/friends_test.c +++ b/auto_tests/friends_test.c @@ -29,6 +29,10 @@ #define WAIT_COUNT 30 #define WAIT_TIME 500 +#ifndef MAP_ANONYMOUS +#define MAP_ANONYMOUS MAP_ANON +#endif + /* first step, second step */ #define FIRST_FLAG 0x1 #define SECOND_FLAG 0x2