Combine with APPLE and OpenBSD off_t modification

pull/328/head
Samuel Andersen 2020-11-09 16:20:17 -08:00
parent 4381d7a1b2
commit b4d8d14b34
1 changed files with 2 additions and 5 deletions

View File

@ -10,13 +10,10 @@ message(WARNING "Version to build: ${GRIVE_VERSION}")
# common compile options
add_definitions( -DVERSION="${GRIVE_VERSION}" )
add_definitions( -D_FILE_OFFSET_BITS=64 -std=c++0x )
if ( APPLE )
add_definitions( -Doff64_t=off_t )
endif ( APPLE )
if ( CMAKE_SYSTEM MATCHES "^FreeBSD" )
if ( APPLE OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" )
add_definitions( -Doff64_t=off_t )
endif ( CMAKE_SYSTEM MATCHES "^FreeBSD" )
endif ( APPLE OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" )
find_program(
HAVE_SYSTEMD systemd