FreeBSD fixes and improvements

pull/186/head
Carlos J 2018-01-15 21:59:17 +01:00
parent 84c57c121e
commit bff462211a
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -33,7 +33,7 @@
#include <sys/types.h>
#include <fcntl.h>
#ifdef __OpenBSD__
#if defined(__FreeBSD__) || defined(__OpenBSD__)
#include <unistd.h>
#endif