diff options
Diffstat (limited to 'src/Driver/Fuse')
-rw-r--r-- | src/Driver/Fuse/FuseService.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Driver/Fuse/FuseService.cpp b/src/Driver/Fuse/FuseService.cpp index a2c769f8..eee0c433 100644 --- a/src/Driver/Fuse/FuseService.cpp +++ b/src/Driver/Fuse/FuseService.cpp @@ -9,9 +9,14 @@ contained in the file License.txt included in VeraCrypt binary and source code distribution packages. */ +#ifdef TC_OPENBSD +#define FUSE_USE_VERSION 26 +#else #define FUSE_USE_VERSION 25 +#endif + #include <errno.h> #include <fcntl.h> #include <fuse.h> #include <iostream> @@ -50,9 +55,13 @@ namespace VeraCrypt return 0; } +#ifdef TC_OPENBSD + static void *fuse_service_init (struct fuse_conn_info *) +#else static void *fuse_service_init () +#endif { try { // Termination signals are handled by a separate process to allow clean dismount on shutdown @@ -582,9 +591,13 @@ namespace VeraCrypt } SignalHandlerPipe->GetWriteFD(); +#ifdef TC_OPENBSD + _exit (fuse_main (argc, argv, &fuse_service_oper, NULL)); +#else _exit (fuse_main (argc, argv, &fuse_service_oper)); +#endif } VolumeInfo FuseService::OpenVolumeInfo; Mutex FuseService::OpenVolumeInfoMutex; |