aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-vm-tools/0007-Fix-vmblock-linux-detection.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/open-vm-tools/0007-Fix-vmblock-linux-detection.patch')
-rw-r--r--main/open-vm-tools/0007-Fix-vmblock-linux-detection.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/main/open-vm-tools/0007-Fix-vmblock-linux-detection.patch b/main/open-vm-tools/0007-Fix-vmblock-linux-detection.patch
new file mode 100644
index 0000000000..35edc6f8dc
--- /dev/null
+++ b/main/open-vm-tools/0007-Fix-vmblock-linux-detection.patch
@@ -0,0 +1,28 @@
+From 4c4cc27681860746249218d5ee12e5acd21985ca Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Wed, 18 Nov 2015 10:37:14 +0000
+Subject: [PATCH 07/11] Fix vmblock linux detection
+
+This is needed for musl libc.
+
+Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+---
+ open-vm-tools/lib/include/vmblock.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/open-vm-tools/lib/include/vmblock.h b/open-vm-tools/lib/include/vmblock.h
+index 8dbb0ce..541fd46 100644
+--- a/open-vm-tools/lib/include/vmblock.h
++++ b/open-vm-tools/lib/include/vmblock.h
+@@ -145,7 +145,7 @@
+ # define VMBLOCK_DEVICE_MODE VMBLOCK_FUSE_DEVICE_MODE
+ # define VMBLOCK_MOUNT_POINT VMBLOCK_FUSE_MOUNT_POINT
+
+-#elif defined(linux)
++#elif defined(__linux__)
+ # define VMBLOCK_ADD_FILEBLOCK 98
+ # define VMBLOCK_DEL_FILEBLOCK 99
+ # ifdef VMX86_DEVEL
+--
+2.6.3
+