diff options
author | Steve Wills <swills@FreeBSD.org> | 2016-09-12 01:37:19 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2016-09-12 01:37:19 +0000 |
commit | 62a1fbb41a06032f0028dcd814ba22648b082daf (patch) | |
tree | c3162089aee56afd44d45c1737bc16af2fe61046 | |
parent | security/stunnel: Support building with LibreSSL (diff) |
emulators/open-vm-tools: Fix build with clang 3.9.0
PR: 212426
Submitted by: dim
Notes
Notes:
svn path=/head/; revision=421892
-rw-r--r-- | emulators/open-vm-tools/files/patch-lib_include_vm__basic__defs.h | 15 |
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 |