We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2155b75 + 150a817 commit 84c57c1Copy full SHA for 84c57c1
2 files changed
grive/CMakeLists.txt
@@ -26,4 +26,9 @@ set_target_properties( grive_executable
26
)
27
28
install(TARGETS grive_executable RUNTIME DESTINATION bin)
29
-install(FILES doc/grive.1 DESTINATION share/man/man1 )
+
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
@@ -33,6 +33,10 @@
#include <sys/types.h>
#include <fcntl.h>
35
36
+#ifdef __OpenBSD__
37
+#include <unistd.h>
38
+#endif
39
40
#ifdef WIN32
41
#include <io.h>
42
typedef int ssize_t ;
0 commit comments