aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2016-09-12 09:37:19 +0800
committerswills <swills@FreeBSD.org>2016-09-12 09:37:19 +0800
commite190b6acd0f779281e0b2b3668dbfbb44a7cc0d8 (patch)
treec3162089aee56afd44d45c1737bc16af2fe61046 /emulators
parent86d26b85a6e35b65cc44b25baab19dee64e0c7e1 (diff)
downloadfreebsd-ports-gnome-e190b6acd0f779281e0b2b3668dbfbb44a7cc0d8.tar.gz
freebsd-ports-gnome-e190b6acd0f779281e0b2b3668dbfbb44a7cc0d8.tar.zst
freebsd-ports-gnome-e190b6acd0f779281e0b2b3668dbfbb44a7cc0d8.zip
emulators/open-vm-tools: Fix build with clang 3.9.0
PR: 212426 Submitted by: dim
Diffstat (limited to 'emulators')
-rw-r--r--emulators/open-vm-tools/files/patch-lib_include_vm__basic__defs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/emulators/open-vm-tools/files/patch-lib_include_vm__basic__defs.h b/emulators/open-vm-tools/files/patch-lib_include_vm__basic__defs.h
new file mode 100644
index 000000000000..42e730c2fee7
--- /dev/null
+++ b/emulators/open-vm-tools/files/patch-lib_include_vm__basic__defs.h
@@ -0,0 +1,15 @@
+--- lib/include/vm_basic_defs.h.orig 2013-09-23 15:51:10 UTC
++++ lib/include/vm_basic_defs.h
+@@ -81,7 +81,11 @@
+ #include "vm_basic_types.h" // For INLINE.
+
+ /* Checks for FreeBSD, filtering out VMKERNEL. */
+-#define __IS_FREEBSD__ (!defined(VMKERNEL) && defined(__FreeBSD__))
++#if !defined(VMKERNEL) && defined(__FreeBSD__)
++#define __IS_FREEBSD__ 1
++#else
++#define __IS_FREEBSD__ 0
++#endif
+ #define __IS_FREEBSD_VER__(ver) (__IS_FREEBSD__ && __FreeBSD_version >= (ver))
+
+ #if defined _WIN32 && defined USERLEVEL