blob: b3906e827aefa1e452916b7e267598937d34f93a [file] [log] [blame]
Patrick Williams2194f502022-10-16 14:26:09 -05001From 0c695d910b3e136e116cdbe0bfc6231dfac255a1 Mon Sep 17 00:00:00 2001
Andrew Geisslere34f8962021-04-15 15:53:51 -05002From: Randy MacLeod <Randy.MacLeod@windriver.com>
3Date: Wed, 24 Mar 2021 16:21:35 -0400
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08004Subject: [PATCH] Rename poll.h to vm_poll.h
5
Andrew Geisslere34f8962021-04-15 15:53:51 -05006Rename poll.h to vm_poll.h and switch from:
7 #include <sys/poll.h>
8to
9 #include <poll.h>
10
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011musl libc's system headers pulls in open-vm-tools' poll.h. To avoid this
12we rename poll.h to vm_poll.h.
13
Andrew Geisslere34f8962021-04-15 15:53:51 -050014Update for open-vm-tools-11.2.5.
15
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080016Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
17Signed-off-by: Khem Raj <raj.khem@gmail.com>
Andrew Geisslere34f8962021-04-15 15:53:51 -050018Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080019---
Andrew Geisslere34f8962021-04-15 15:53:51 -050020 open-vm-tools/lib/asyncsocket/asyncsocket.c | 2 +-
21 open-vm-tools/lib/hgfsServer/hgfsServer.c | 2 +-
22 open-vm-tools/lib/include/asyncsocket.h | 2 +-
23 open-vm-tools/lib/include/pollImpl.h | 2 +-
24 open-vm-tools/lib/include/{poll.h => vm_poll.h} | 2 +-
25 open-vm-tools/lib/rpcIn/rpcin.c | 2 +-
26 6 files changed, 6 insertions(+), 6 deletions(-)
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080027 rename open-vm-tools/lib/include/{poll.h => vm_poll.h} (99%)
28
Andrew Geisslere34f8962021-04-15 15:53:51 -050029diff --git a/open-vm-tools/lib/asyncsocket/asyncsocket.c b/open-vm-tools/lib/asyncsocket/asyncsocket.c
Patrick Williams2194f502022-10-16 14:26:09 -050030index b285c59c6..5c528820d 100644
Brad Bishop15ae2502019-06-18 21:44:24 -040031--- a/open-vm-tools/lib/asyncsocket/asyncsocket.c
32+++ b/open-vm-tools/lib/asyncsocket/asyncsocket.c
Andrew Geisslere34f8962021-04-15 15:53:51 -050033@@ -87,7 +87,7 @@
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080034 #include "random.h"
35 #include "asyncsocket.h"
36 #include "asyncSocketBase.h"
37-#include "poll.h"
38+#include "vm_poll.h"
39 #include "log.h"
40 #include "err.h"
41 #include "hostinfo.h"
Andrew Geisslere34f8962021-04-15 15:53:51 -050042diff --git a/open-vm-tools/lib/hgfsServer/hgfsServer.c b/open-vm-tools/lib/hgfsServer/hgfsServer.c
Patrick Williams2194f502022-10-16 14:26:09 -050043index 98f5b3f06..b436f0c7e 100644
Brad Bishop15ae2502019-06-18 21:44:24 -040044--- a/open-vm-tools/lib/hgfsServer/hgfsServer.c
45+++ b/open-vm-tools/lib/hgfsServer/hgfsServer.c
Andrew Geisslere34f8962021-04-15 15:53:51 -050046@@ -51,7 +51,7 @@
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080047 #include "hgfsDirNotify.h"
Andrew Geisslere34f8962021-04-15 15:53:51 -050048 #include "hgfsThreadpool.h"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080049 #include "userlock.h"
50-#include "poll.h"
51+#include "vm_poll.h"
52 #include "mutexRankLib.h"
53 #include "vm_basic_asm.h"
54 #include "unicodeOperations.h"
Andrew Geisslere34f8962021-04-15 15:53:51 -050055diff --git a/open-vm-tools/lib/include/asyncsocket.h b/open-vm-tools/lib/include/asyncsocket.h
Patrick Williams2194f502022-10-16 14:26:09 -050056index dad848093..b61a2561f 100644
Brad Bishop15ae2502019-06-18 21:44:24 -040057--- a/open-vm-tools/lib/include/asyncsocket.h
58+++ b/open-vm-tools/lib/include/asyncsocket.h
Andrew Geisslere34f8962021-04-15 15:53:51 -050059@@ -171,7 +171,7 @@ typedef struct AsyncSocket AsyncSocket;
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080060 * Or the client can specify its favorite poll class and locking behavior.
61 * Use of IVmdbPoll is only supported for regular sockets and for Attach.
62 */
63-#include "poll.h"
64+#include "vm_poll.h"
65 struct IVmdbPoll;
66 typedef struct AsyncSocketPollParams {
67 int flags; /* Default 0, only POLL_FLAG_NO_BULL is valid */
Andrew Geisslere34f8962021-04-15 15:53:51 -050068diff --git a/open-vm-tools/lib/include/pollImpl.h b/open-vm-tools/lib/include/pollImpl.h
Patrick Williams2194f502022-10-16 14:26:09 -050069index 46442e556..8bc669970 100644
Brad Bishop15ae2502019-06-18 21:44:24 -040070--- a/open-vm-tools/lib/include/pollImpl.h
71+++ b/open-vm-tools/lib/include/pollImpl.h
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080072@@ -44,7 +44,7 @@
73 #define INCLUDE_ALLOW_USERLEVEL
74 #include "includeCheck.h"
75
76-#include "poll.h"
77+#include "vm_poll.h"
78 #include "vm_basic_asm.h"
79
80 #if defined(__cplusplus)
Andrew Geisslere34f8962021-04-15 15:53:51 -050081diff --git a/open-vm-tools/lib/include/poll.h b/open-vm-tools/lib/include/vm_poll.h
82similarity index 99%
83rename from open-vm-tools/lib/include/poll.h
84rename to open-vm-tools/lib/include/vm_poll.h
Patrick Williams2194f502022-10-16 14:26:09 -050085index ade356b9f..8759fb960 100644
Brad Bishop15ae2502019-06-18 21:44:24 -040086--- a/open-vm-tools/lib/include/poll.h
Brad Bishop2d39a062019-10-28 08:33:36 -040087+++ b/open-vm-tools/lib/include/vm_poll.h
Andrew Geisslere34f8962021-04-15 15:53:51 -050088@@ -60,7 +60,7 @@ extern "C" {
89 #if !defined(TARGET_OS_IPHONE) || TARGET_OS_IPHONE == 0
90 #include <sys/kernel.h>
91 #endif
92-#include <sys/poll.h>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080093+#include <poll.h>
Andrew Geisslere34f8962021-04-15 15:53:51 -050094 #define HZ 100
95 #endif
96 #ifdef __ANDROID__
97diff --git a/open-vm-tools/lib/rpcIn/rpcin.c b/open-vm-tools/lib/rpcIn/rpcin.c
Patrick Williams2194f502022-10-16 14:26:09 -050098index 8b1fe759d..f22fcd402 100644
Brad Bishop15ae2502019-06-18 21:44:24 -040099--- a/open-vm-tools/lib/rpcIn/rpcin.c
100+++ b/open-vm-tools/lib/rpcIn/rpcin.c
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800101@@ -57,7 +57,7 @@
102
103 #if defined(VMTOOLS_USE_VSOCKET)
104 # include <glib.h>
105-# include "poll.h"
106+# include "vm_poll.h"
107 # include "asyncsocket.h"
108 # include "vmci_defs.h"
109 #include "dataMap.h"
Andrew Geisslere34f8962021-04-15 15:53:51 -0500110--
Patrick Williams2194f502022-10-16 14:26:09 -05001112.25.1
Andrew Geisslere34f8962021-04-15 15:53:51 -0500112