diff --git a/grive/CMakeLists.txt b/grive/CMakeLists.txt index 37145f1..32dd16b 100644 --- a/grive/CMakeLists.txt +++ b/grive/CMakeLists.txt @@ -27,8 +27,8 @@ set_target_properties( grive_executable install(TARGETS grive_executable RUNTIME DESTINATION bin) -if ( ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" ) +if ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" ) install(FILES doc/grive.1 DESTINATION man/man1 ) -else ( ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" ) +else ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" ) install(FILES doc/grive.1 DESTINATION share/man/man1 ) -endif( ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" ) +endif( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" ) diff --git a/libgrive/src/util/File.cc b/libgrive/src/util/File.cc index 93345ac..c5184ec 100644 --- a/libgrive/src/util/File.cc +++ b/libgrive/src/util/File.cc @@ -33,7 +33,7 @@ #include #include -#ifdef __OpenBSD__ +#if defined(__FreeBSD__) || defined(__OpenBSD__) #include #endif