Skip to content

Commit 84c57c1

Browse files
authored
Merge pull request Grive#115 from sizeofvoid/master
OpenBSD install and compile fixes and improvements
2 parents 2155b75 + 150a817 commit 84c57c1

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

grive/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,9 @@ set_target_properties( grive_executable
2626
)
2727

2828
install(TARGETS grive_executable RUNTIME DESTINATION bin)
29-
install(FILES doc/grive.1 DESTINATION share/man/man1 )
29+
30+
if ( ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" )
31+
install(FILES doc/grive.1 DESTINATION man/man1 )
32+
else ( ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" )
33+
install(FILES doc/grive.1 DESTINATION share/man/man1 )
34+
endif( ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" )

libgrive/src/util/File.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
#include <sys/types.h>
3434
#include <fcntl.h>
3535

36+
#ifdef __OpenBSD__
37+
#include <unistd.h>
38+
#endif
39+
3640
#ifdef WIN32
3741
#include <io.h>
3842
typedef int ssize_t ;

0 commit comments

Comments
 (0)