mirror of https://github.com/vitalif/grive2
Merge pull request #115 from sizeofvoid/master
OpenBSD install and compile fixes and improvementspull/179/head
commit
84c57c121e
|
@ -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" )
|
||||
|
|
|
@ -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 ;
|
||||
|
|
Loading…
Reference in New Issue