mirror of https://github.com/vitalif/grive2
Change off64_t patch to match APPLE format in CMakeLists.txt
parent
a11b16f273
commit
109ccd13c8
|
@ -10,10 +10,14 @@ 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 )
|
||||
if ( APPLE OR )
|
||||
add_definitions( -Doff64_t=off_t )
|
||||
endif ( APPLE )
|
||||
|
||||
if ( CMAKE_SYSTEM MATCHES "^FreeBSD" )
|
||||
add_definitions( -Doff64_t=off_t )
|
||||
endif ( CMAKE_SYSTEM MATCHES "^FreeBSD" )
|
||||
|
||||
find_program(
|
||||
HAVE_SYSTEMD systemd
|
||||
PATHS /lib/systemd /usr/lib/systemd
|
||||
|
|
|
@ -24,10 +24,6 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
#define off64_t off_t
|
||||
#endif
|
||||
|
||||
namespace gr {
|
||||
|
||||
class DateTime ;
|
||||
|
|
Loading…
Reference in New Issue