Change off64_t patch to match APPLE format in CMakeLists.txt

pull/328/head
Samuel Andersen 2020-11-09 14:58:27 -08:00
parent a11b16f273
commit 109ccd13c8
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -24,10 +24,6 @@
#include <string>
#if defined(__FreeBSD__)
#define off64_t off_t
#endif
namespace gr {
class DateTime ;