]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes to common header files not applicable to open-vm-tools.
authorKaty Feng <fkaty@vmware.com>
Tue, 22 Aug 2023 18:11:42 +0000 (11:11 -0700)
committerKaty Feng <fkaty@vmware.com>
Tue, 22 Aug 2023 18:11:42 +0000 (11:11 -0700)
open-vm-tools/lib/include/iovector.h
open-vm-tools/lib/include/su.h

index 2354d5b4e60303a2d5fbd3111478218b9f79d722..170017edd3fa898fa79389298116bd92d33f795d 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 1998-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-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
@@ -36,7 +36,8 @@ extern "C" {
 /*
  * Ugly definition of struct iovec.
  */
-#if defined(__linux__) || defined(sun) || defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__linux__) || defined(sun) || defined(__APPLE__) || \
+    defined(__FreeBSD__) || defined(__EMSCRIPTEN__)
 #include <sys/uio.h>    // for struct iovec
 #else
 
@@ -59,7 +60,7 @@ typedef struct VMIOVec {
    uint32 numEntries;           /* Total number of entries */
    Bool read;                   /* is it a readv operation? else it's write */
    struct iovec *entries;       /* Array of entries (dynamically allocated) */
-   struct iovec *allocEntries;  /* The original array that can be passed to free(). 
+   struct iovec *allocEntries;  /* The original array that can be passed to free().
                                  * NULL if entries is on a stack. */
 } VMIOVec;
 
index 67e88ae9e35f0c7d61d413d38ab974dc5db8e99c..fbde341a2219e811b78700cb6b71d6c61a117ce4 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 1998-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-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
@@ -55,7 +55,8 @@ Bool Id_AuthCheck(char const *right,
                   char const *localizedDescription,
                   Bool showDialogIfNeeded);
 
-#elif (defined(__linux__) || defined(sun) || defined(__FreeBSD__))
+#elif defined(__linux__) || defined(sun) || defined(__FreeBSD__) || \
+      defined(__EMSCRIPTEN__)
 
 #include <sys/types.h>
 #include <unistd.h>