mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add open-vm-tools for x86
This commit is contained in:
parent
41cb47aedd
commit
bf9a9aed78
17 changed files with 604 additions and 46 deletions
94
open-vm-tools/patches/0008-Rename-poll.h-to-vm_poll.h.patch
Normal file
94
open-vm-tools/patches/0008-Rename-poll.h-to-vm_poll.h.patch
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
diff --git a/open-vm-tools/lib/asyncsocket/asyncsocket.c b/open-vm-tools/lib/asyncsocket/asyncsocket.c
|
||||
index e0a68e7e..b9675674 100644
|
||||
--- a/open-vm-tools/lib/asyncsocket/asyncsocket.c
|
||||
+++ b/open-vm-tools/lib/asyncsocket/asyncsocket.c
|
||||
@@ -86,7 +86,7 @@
|
||||
#include "random.h"
|
||||
#include "asyncsocket.h"
|
||||
#include "asyncSocketBase.h"
|
||||
-#include "poll.h"
|
||||
+#include "vm_poll.h"
|
||||
#include "log.h"
|
||||
#include "err.h"
|
||||
#include "hostinfo.h"
|
||||
diff --git a/open-vm-tools/lib/hgfsServer/hgfsServer.c b/open-vm-tools/lib/hgfsServer/hgfsServer.c
|
||||
index 991a7941..ed0c09f9 100644
|
||||
--- a/open-vm-tools/lib/hgfsServer/hgfsServer.c
|
||||
+++ b/open-vm-tools/lib/hgfsServer/hgfsServer.c
|
||||
@@ -48,7 +48,7 @@
|
||||
#include "hgfsServerOplock.h"
|
||||
#include "hgfsDirNotify.h"
|
||||
#include "userlock.h"
|
||||
-#include "poll.h"
|
||||
+#include "vm_poll.h"
|
||||
#include "mutexRankLib.h"
|
||||
#include "vm_basic_asm.h"
|
||||
#include "unicodeOperations.h"
|
||||
diff --git a/open-vm-tools/lib/include/asyncsocket.h b/open-vm-tools/lib/include/asyncsocket.h
|
||||
index 524147ea..103f944f 100644
|
||||
--- a/open-vm-tools/lib/include/asyncsocket.h
|
||||
+++ b/open-vm-tools/lib/include/asyncsocket.h
|
||||
@@ -164,7 +164,7 @@ typedef struct AsyncSocket AsyncSocket;
|
||||
* Or the client can specify its favorite poll class and locking behavior.
|
||||
* Use of IVmdbPoll is only supported for regular sockets and for Attach.
|
||||
*/
|
||||
-#include "poll.h"
|
||||
+#include "vm_poll.h"
|
||||
struct IVmdbPoll;
|
||||
typedef struct AsyncSocketPollParams {
|
||||
int flags; /* Default 0, only POLL_FLAG_NO_BULL is valid */
|
||||
diff --git a/open-vm-tools/lib/include/pollImpl.h b/open-vm-tools/lib/include/pollImpl.h
|
||||
index 46442e55..8bc66997 100644
|
||||
--- a/open-vm-tools/lib/include/pollImpl.h
|
||||
+++ b/open-vm-tools/lib/include/pollImpl.h
|
||||
@@ -44,7 +44,7 @@
|
||||
#define INCLUDE_ALLOW_USERLEVEL
|
||||
#include "includeCheck.h"
|
||||
|
||||
-#include "poll.h"
|
||||
+#include "vm_poll.h"
|
||||
#include "vm_basic_asm.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
diff --git a/open-vm-tools/lib/include/poll.h b/open-vm-tools/lib/include/vm_poll.h
|
||||
similarity index 99%
|
||||
rename from a/open-vm-tools/lib/include/poll.h
|
||||
rename to a/open-vm-tools/lib/include/vm_poll.h
|
||||
index 988fe6d0..e9e74fb5 100644
|
||||
--- a/open-vm-tools/lib/include/poll.h
|
||||
+++ b/open-vm-tools/lib/include/vm_poll.h
|
||||
@@ -60,7 +60,7 @@ extern "C" {
|
||||
#if !defined(TARGET_OS_IPHONE) || TARGET_OS_IPHONE == 0
|
||||
#include <sys/kernel.h>
|
||||
#endif
|
||||
-#include <sys/poll.h>
|
||||
+#include <poll.h>
|
||||
#define HZ 100
|
||||
#endif
|
||||
#ifdef __ANDROID__
|
||||
diff --git a/open-vm-tools/lib/rpcIn/rpcin.c b/open-vm-tools/lib/rpcIn/rpcin.c
|
||||
index c2c51583..d6c62f10 100644
|
||||
--- a/open-vm-tools/lib/rpcIn/rpcin.c
|
||||
+++ b/open-vm-tools/lib/rpcIn/rpcin.c
|
||||
@@ -57,7 +57,7 @@
|
||||
|
||||
#if defined(VMTOOLS_USE_VSOCKET)
|
||||
# include <glib.h>
|
||||
-# include "poll.h"
|
||||
+# include "vm_poll.h"
|
||||
# include "asyncsocket.h"
|
||||
# include "vmci_defs.h"
|
||||
#include "dataMap.h"
|
||||
diff --git a/open-vm-tools/services/plugins/grabbitmqProxy/grabbitmqProxyPlugin.c b/open-vm-tools/services/plugins/grabbitmqProxy/grabbitmqProxyPlugin.c
|
||||
index 03700937..f0b49ad7 100644
|
||||
--- a/open-vm-tools/services/plugins/grabbitmqProxy/grabbitmqProxyPlugin.c
|
||||
+++ b/open-vm-tools/services/plugins/grabbitmqProxy/grabbitmqProxyPlugin.c
|
||||
@@ -48,7 +48,7 @@
|
||||
#include "rpcout.h"
|
||||
#include "rabbitmqProxyConst.h"
|
||||
#include "vm_basic_types.h"
|
||||
-#include "poll.h"
|
||||
+#include "vm_poll.h"
|
||||
#ifdef OPEN_VM_TOOLS
|
||||
#include "vmci_sockets.h"
|
||||
#include "sslDirect.h"
|
||||
Loading…
Add table
Add a link
Reference in a new issue