From: VMware, Inc <> Date: Wed, 18 Sep 2013 03:19:13 +0000 (-0700) Subject: Fix a spurious warning. X-Git-Tag: 2013.09.16-1328054~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=036172f0cb580ca370a94324f6a465bcb71f2076;p=thirdparty%2Fopen-vm-tools.git Fix a spurious warning. /dbc/pa-dbc1121/rrugina/rr-vmcore-dbc0/bora/public/vm_basic_defs.h:315:5: warning: "VMKERNEL" is not defined Signed-off-by: Dmitry Torokhov --- diff --git a/open-vm-tools/lib/include/vm_basic_defs.h b/open-vm-tools/lib/include/vm_basic_defs.h index c2085379a..acf9d195f 100644 --- a/open-vm-tools/lib/include/vm_basic_defs.h +++ b/open-vm-tools/lib/include/vm_basic_defs.h @@ -367,7 +367,7 @@ void *_ReturnAddress(void); #elif __GNUC__ #define GetReturnAddress() __builtin_return_address(0) -#if VMKERNEL +#ifdef VMKERNEL /* * Using __builtin_frame_address(N) and__builtin_return_address(N) * with N >= 1 causes crashes for code compiled without frame pointers.