Changeset 80774 in vbox for trunk/src/VBox/ImageMounter
- Timestamp:
- Sep 13, 2019 11:17:18 AM (5 years ago)
- Location:
- trunk/src/VBox/ImageMounter/vboximg-mount
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ImageMounter/vboximg-mount/Makefile.kmk
r76553 r80774 19 19 include $(KBUILD_PATH)/subheader.kmk 20 20 21 ifeq ($(KBUILD_TARGET),darwin)22 VBOX_PATH_FUSE ?= $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_TRG)/osxfuse/v*)))23 ifneq ($(VBOX_PATH_FUSE),)24 LIB_FUSE := $(VBOX_PATH_FUSE)/lib/libosxfuse.dylib25 LIBPATH_FUSE := $(VBOX_PATH_FUSE)/lib26 FUSE_INCS := $(VBOX_PATH_FUSE)/include/osxfuse27 else28 LIB_FUSE := /usr/local/lib/libosxfuse.dylib29 LIBPATH_FUSE := /usr/local/lib30 FUSE_INCS := /usr/local/include/osxfuse \31 /usr/local/include32 endif33 else34 LIB_FUSE := fuse35 FUSE_INCS := /usr/include36 endif37 38 21 # 39 22 # vboximg-mount - Disk Image Flatting FUSE Program. … … 53 36 vboximgMedia.h \ 54 37 vboximgOpts.h \ 55 SelfSizingTable.h 38 SelfSizingTable.h \ 39 fuse.cpp 56 40 57 41 vboximg-mount_LIBS = \ 58 42 $(LIB_DDU) \ 59 $(LIB_RUNTIME) \ 60 $(LIB_FUSE) 61 62 vboximg-mount_INCS = $(FUSE_INCS) 63 #vboximg-mount_CXXFLAGS.darwin = -std=c++11 43 $(LIB_RUNTIME) 64 44 65 45 include $(FILE_KBUILD_SUB_FOOTER) -
trunk/src/VBox/ImageMounter/vboximg-mount/vboximg-mount.cpp
r80529 r80774 29 29 #endif 30 30 #define MAX_READERS (INT32_MAX / 32) 31 #include <fuse.h>32 31 #ifdef UNIX_DERIVATIVE 33 32 #include <errno.h> … … 80 79 #include <iprt/time.h> 81 80 81 #include "fuse.h" 82 82 #include "vboximgCrypto.h" 83 83 #include "vboximgMedia.h" … … 934 934 return RTMsgErrorExitFailure("VDInit failed, rc=%Rrc\n", rc); 935 935 936 rc = RTFuseLoadLib(); 937 if (RT_FAILURE(rc)) 938 return RTMsgErrorExitFailure("Failed to load the fuse library, rc=%Rrc\n", rc); 939 936 940 memset(&g_vboximgOps, 0, sizeof(g_vboximgOps)); 937 941 g_vboximgOps.open = vboximgOp_open; … … 1330 1334 RTPrintf("\nvboximg-mount: Going into background...\n"); 1331 1335 1332 rc = fuse_main (args.argc, args.argv, &g_vboximgOps, NULL);1336 rc = fuse_main_real(args.argc, args.argv, &g_vboximgOps, sizeof(g_vboximgOps), NULL); 1333 1337 1334 1338 int rc2 = RTVfsFileRelease(g_hVfsFileDisk);
Note:
See TracChangeset
for help on using the changeset viewer.