fix build of mainline code for OSX 10.9

git-svn-id: http://encfs.googlecode.com/svn/trunk@126 db9cf616-1c43-0410-9cb8-a902689de0d6
This commit is contained in:
Valient Gough 2013-11-04 06:41:08 +00:00
parent 96a5f19e02
commit 452690a7a3

View File

@ -53,6 +53,9 @@ include_directories (${FUSE_INCLUDE_DIR})
add_definitions (-D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26)
if (APPLE)
add_definitions (-D__FreeBSD__=10)
# XXX: Fall back to stdc++, due to clang 5.0.1 header file issues
# (missing sys/endian.h, needed by standard c++ header files).
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7")
endif (APPLE)
# Packaging config.