Merge pull request #115 from sizeofvoid/master

OpenBSD install and compile fixes and improvements
pull/179/head
Vitaliy Filippov 2017-11-21 23:50:42 +03:00 committed by GitHub
commit 84c57c121e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -26,4 +26,9 @@ set_target_properties( grive_executable
)
install(TARGETS grive_executable RUNTIME DESTINATION bin)
install(FILES doc/grive.1 DESTINATION share/man/man1 )
if ( ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" )
install(FILES doc/grive.1 DESTINATION man/man1 )
else ( ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" )
install(FILES doc/grive.1 DESTINATION share/man/man1 )
endif( ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" )

View File

@ -33,6 +33,10 @@
#include <sys/types.h>
#include <fcntl.h>
#ifdef __OpenBSD__
#include <unistd.h>
#endif
#ifdef WIN32
#include <io.h>
typedef int ssize_t ;