blob: 5c1aa7c40fc927802df042776a8b8912d22b496f [file] [log] [blame]
Brad Bishop15ae2502019-06-18 21:44:24 -04001From 8793466326dd10b0d2dbb83c64beff5cc8c0fc7d Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 13 Jun 2018 23:11:58 -0700
4Subject: [PATCH] Rename poll.h to vm_poll.h
5
6musl libc's system headers pulls in open-vm-tools' poll.h. To avoid this
7we rename poll.h to vm_poll.h.
8
9Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 open-vm-tools/lib/asyncsocket/asyncsocket.c | 2 +-
13 open-vm-tools/lib/hgfsServer/hgfsServer.c | 2 +-
14 open-vm-tools/lib/include/asyncsocket.h | 2 +-
15 open-vm-tools/lib/include/pollImpl.h | 2 +-
16 open-vm-tools/lib/include/{poll.h => vm_poll.h} | 2 +-
17 open-vm-tools/lib/rpcIn/rpcin.c | 2 +-
18 .../services/plugins/grabbitmqProxy/grabbitmqProxyPlugin.c | 2 +-
19 7 files changed, 7 insertions(+), 7 deletions(-)
20 rename open-vm-tools/lib/include/{poll.h => vm_poll.h} (99%)
21
Brad Bishop15ae2502019-06-18 21:44:24 -040022diff --git a/open-vm-tools/lib/asyncsocket/asyncsocket.c b/open-vm-tools/lib/asyncsocket/asyncsocket.c
23index b41aa29d..8691309d 100644
24--- a/open-vm-tools/lib/asyncsocket/asyncsocket.c
25+++ b/open-vm-tools/lib/asyncsocket/asyncsocket.c
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080026@@ -86,7 +86,7 @@
27 #include "random.h"
28 #include "asyncsocket.h"
29 #include "asyncSocketBase.h"
30-#include "poll.h"
31+#include "vm_poll.h"
32 #include "log.h"
33 #include "err.h"
34 #include "hostinfo.h"
Brad Bishop15ae2502019-06-18 21:44:24 -040035diff --git a/open-vm-tools/lib/hgfsServer/hgfsServer.c b/open-vm-tools/lib/hgfsServer/hgfsServer.c
36index 7ea3b7f4..740c4fed 100644
37--- a/open-vm-tools/lib/hgfsServer/hgfsServer.c
38+++ b/open-vm-tools/lib/hgfsServer/hgfsServer.c
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080039@@ -48,7 +48,7 @@
40 #include "hgfsServerOplock.h"
41 #include "hgfsDirNotify.h"
42 #include "userlock.h"
43-#include "poll.h"
44+#include "vm_poll.h"
45 #include "mutexRankLib.h"
46 #include "vm_basic_asm.h"
47 #include "unicodeOperations.h"
Brad Bishop15ae2502019-06-18 21:44:24 -040048diff --git a/open-vm-tools/lib/include/asyncsocket.h b/open-vm-tools/lib/include/asyncsocket.h
49index ec9b45aa..dc91e738 100644
50--- a/open-vm-tools/lib/include/asyncsocket.h
51+++ b/open-vm-tools/lib/include/asyncsocket.h
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080052@@ -164,7 +164,7 @@ typedef struct AsyncSocket AsyncSocket;
53 * Or the client can specify its favorite poll class and locking behavior.
54 * Use of IVmdbPoll is only supported for regular sockets and for Attach.
55 */
56-#include "poll.h"
57+#include "vm_poll.h"
58 struct IVmdbPoll;
59 typedef struct AsyncSocketPollParams {
60 int flags; /* Default 0, only POLL_FLAG_NO_BULL is valid */
Brad Bishop15ae2502019-06-18 21:44:24 -040061diff --git a/open-vm-tools/lib/include/pollImpl.h b/open-vm-tools/lib/include/pollImpl.h
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080062index 46442e55..8bc66997 100644
Brad Bishop15ae2502019-06-18 21:44:24 -040063--- a/open-vm-tools/lib/include/pollImpl.h
64+++ b/open-vm-tools/lib/include/pollImpl.h
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080065@@ -44,7 +44,7 @@
66 #define INCLUDE_ALLOW_USERLEVEL
67 #include "includeCheck.h"
68
69-#include "poll.h"
70+#include "vm_poll.h"
71 #include "vm_basic_asm.h"
72
73 #if defined(__cplusplus)
Brad Bishop15ae2502019-06-18 21:44:24 -040074diff --git a/open-vm-tools/lib/include/poll.h b/open-vm-tools/lib/include/vm_poll.h
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080075similarity index 99%
76rename from open-vm-tools/lib/include/poll.h
77rename to open-vm-tools/lib/include/vm_poll.h
Brad Bishop15ae2502019-06-18 21:44:24 -040078index 6acd4f35..fbc88494 100644
79--- a/open-vm-tools/lib/include/poll.h
80+++ b/open-vm-tools/lib/include/vm_poll.h
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080081@@ -60,7 +60,7 @@ extern "C" {
82 #if !defined(TARGET_OS_IPHONE) || TARGET_OS_IPHONE == 0
83 #include <sys/kernel.h>
84 #endif
85-#include <sys/poll.h>
86+#include <poll.h>
87 #define HZ 100
88 #endif
89 #ifdef __ANDROID__
Brad Bishop15ae2502019-06-18 21:44:24 -040090diff --git a/open-vm-tools/lib/rpcIn/rpcin.c b/open-vm-tools/lib/rpcIn/rpcin.c
91index 8eea7d86..c48f5be2 100644
92--- a/open-vm-tools/lib/rpcIn/rpcin.c
93+++ b/open-vm-tools/lib/rpcIn/rpcin.c
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080094@@ -57,7 +57,7 @@
95
96 #if defined(VMTOOLS_USE_VSOCKET)
97 # include <glib.h>
98-# include "poll.h"
99+# include "vm_poll.h"
100 # include "asyncsocket.h"
101 # include "vmci_defs.h"
102 #include "dataMap.h"
Brad Bishop15ae2502019-06-18 21:44:24 -0400103diff --git a/open-vm-tools/services/plugins/grabbitmqProxy/grabbitmqProxyPlugin.c b/open-vm-tools/services/plugins/grabbitmqProxy/grabbitmqProxyPlugin.c
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800104index 03700937..f0b49ad7 100644
Brad Bishop15ae2502019-06-18 21:44:24 -0400105--- a/open-vm-tools/services/plugins/grabbitmqProxy/grabbitmqProxyPlugin.c
106+++ b/open-vm-tools/services/plugins/grabbitmqProxy/grabbitmqProxyPlugin.c
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800107@@ -48,7 +48,7 @@
108 #include "rpcout.h"
109 #include "rabbitmqProxyConst.h"
110 #include "vm_basic_types.h"
111-#include "poll.h"
112+#include "vm_poll.h"
113 #ifdef OPEN_VM_TOOLS
114 #include "vmci_sockets.h"
115 #include "sslDirect.h"