/*********************************************************
- * 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
/*
* 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
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;
/*********************************************************
- * 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
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>