Fix missing ftruncate on MacOS
This commit is contained in:
parent
9463599948
commit
09eca87a41
1 changed files with 6 additions and 3 deletions
|
|
@ -33,6 +33,7 @@ ifeq ($(UNAME),Darwin)
|
|||
VB_AUDIO=coreaudio
|
||||
VBM=/Applications/VirtualBox.app/Contents/MacOS/VBoxManage
|
||||
HOST_TARGET ?= $(HOST_ARCH)-apple-darwin
|
||||
ALLOC_FILE=truncate -s "$(FILESYSTEM_SIZE)m"
|
||||
else ifeq ($(UNAME),FreeBSD)
|
||||
FUMOUNT=sudo umount
|
||||
export NPROC=sysctl -n hw.ncpu
|
||||
|
|
@ -41,6 +42,7 @@ else ifeq ($(UNAME),FreeBSD)
|
|||
VB_AUDIO=pulse # To check, will probaly be OSS on most setups
|
||||
VBM=VBoxManage
|
||||
HOST_TARGET ?= $(HOST_ARCH)-unknown-freebsd
|
||||
ALLOC_FILE=fallocate --posix --length "$(FILESYSTEM_SIZE)MiB"
|
||||
else
|
||||
# Detect which version of the fusermount binary is available.
|
||||
ifneq (, $(shell which fusermount3))
|
||||
|
|
@ -54,6 +56,7 @@ else
|
|||
VB_AUDIO=pulse
|
||||
VBM=VBoxManage
|
||||
HOST_TARGET ?= $(HOST_ARCH)-unknown-linux-gnu
|
||||
ALLOC_FILE=fallocate --posix --length "$(FILESYSTEM_SIZE)MiB"
|
||||
endif
|
||||
|
||||
# Automatic variables
|
||||
|
|
|
|||
Loading…
Reference in a new issue