]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes to common source files not applicable to open-vm-tools.
authorKaty Feng <fkaty@vmware.com>
Thu, 5 Oct 2023 17:35:26 +0000 (10:35 -0700)
committerKaty Feng <fkaty@vmware.com>
Thu, 5 Oct 2023 17:35:26 +0000 (10:35 -0700)
open-vm-tools/lib/include/globalConfig.h
open-vm-tools/services/vmtoolsd/mainLoop.c
open-vm-tools/services/vmtoolsd/toolsCoreInt.h

index 55ecb845e93841f6a815fd7998403ab4bf8b0040..9e766cb7f185e25b43e647517b949100350186fa 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (c) 2020-2021 VMware, Inc. All rights reserved.
+ * Copyright (c) 2020-2021,2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -19,7 +19,8 @@
 #ifndef _GLOBAL_CONFIG_H_
 #define _GLOBAL_CONFIG_H_
 
-#if defined(_WIN32) || (defined(__linux__) && !defined(USERWORLD))
+#if (defined(_WIN32) && !defined(_ARM64_)) || \
+    (defined(__linux__) && !defined(USERWORLD))
 
 #define GLOBALCONFIG_SUPPORTED 1
 
index 7f54319e05ae9d0a9bc8e543ea4d03f6c1d93581..5217be5dad1582cbb862e151fb03b5cd0c5f0e71 100644 (file)
@@ -45,8 +45,8 @@
 #include "vmware/tools/utils.h"
 #include "vmware/tools/vmbackup.h"
 
-#if defined(_WIN32) || \
-   (defined(__linux__) && !defined(USERWORLD))
+#if (defined(_WIN32) && !defined(_ARM64_)) || \
+    (defined(__linux__) && !defined(USERWORLD))
 #  include "vmware/tools/guestStore.h"
 #  include "globalConfig.h"
 #endif
@@ -55,7 +55,7 @@
  * guestStoreClient library is needed for both GuestStore-based tools upgrade
  * and also for GlobalConfig module.
  */
-#if defined(_WIN32) || defined(GLOBALCONFIG_SUPPORTED)
+#if (defined(_WIN32) &&  !defined(_ARM64_)) || defined(GLOBALCONFIG_SUPPORTED)
 #  include "guestStoreClient.h"
 #endif
 
@@ -118,8 +118,8 @@ static gboolean gGlobalConfStarted = FALSE;
 static void
 ToolsCoreCleanup(ToolsServiceState *state)
 {
-#if defined(_WIN32) || \
-   (defined(__linux__) && !defined(USERWORLD))
+#if (defined(_WIN32) && !defined(_ARM64_)) || \
+    (defined(__linux__) && !defined(USERWORLD))
    if (state->mainService) {
       /*
        * Shut down guestStore plugin first to prevent worker threads from being
@@ -137,7 +137,7 @@ ToolsCoreCleanup(ToolsServiceState *state)
    }
 #endif
 
-#if defined(_WIN32) || defined(GLOBALCONFIG_SUPPORTED)
+#if (defined(_WIN32) && !defined(_ARM64_)) || defined(GLOBALCONFIG_SUPPORTED)
    /*
     * guestStoreClient library is needed for both GuestStore-based tools
     * upgrade and also for GlobalConfig module.
@@ -472,7 +472,7 @@ ToolsCoreRunLoop(ToolsServiceState *state)
    }
 #endif
 
-#if defined(_WIN32) || defined(GLOBALCONFIG_SUPPORTED)
+#if (defined(_WIN32) && !defined(_ARM64_)) || defined(GLOBALCONFIG_SUPPORTED)
    /*
     * guestStoreClient library is needed for both GuestStore-based tools
     * upgrade and also for GlobalConfig module.
index 57723f5325af06a5e94a98246c5ff9db5d93e062..409eed63cad6f4210c9919864dba08a6b0adf103 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (c) 2008-2021 VMware, Inc. All rights reserved.
+ * Copyright (c) 2008-2021,2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -32,7 +32,8 @@
 #include <glib-object.h>
 #include <gmodule.h>
 #include <time.h>
-#if defined(_WIN32) || (defined(__linux__) && !defined(USERWORLD))
+#if (defined(_WIN32)  && !defined(_ARM64_)) || \
+    (defined(__linux__) && !defined(USERWORLD))
 /* Need this header for GLOBALCONFIG_SUPPORTED definition.*/
 #include "globalConfig.h"
 #endif