From: Katy Feng Date: Fri, 23 Dec 2022 00:25:50 +0000 (-0800) Subject: Change to common header file not applicable to open-vm-tools. X-Git-Tag: stable-12.2.0~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11d8bddccab30dea8c33ab8fb895b599ea6b8419;p=thirdparty%2Fopen-vm-tools.git Change to common header file not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/vm_basic_defs.h b/open-vm-tools/lib/include/vm_basic_defs.h index 714b94317..733026a39 100644 --- a/open-vm-tools/lib/include/vm_basic_defs.h +++ b/open-vm-tools/lib/include/vm_basic_defs.h @@ -829,6 +829,7 @@ typedef int pid_t; lfMessageFont) /* This is not intended to be thread-safe. */ +#ifndef KBUILD_MODNAME #define DO_ONCE(code) \ do { \ static MONITOR_ONLY(PERVCPU) Bool _doOnceDone = FALSE; \ @@ -837,6 +838,7 @@ typedef int pid_t; code; \ } \ } while (0) +#endif /* * Bug 827422 and 838523.