1 [PATCH] fix build with modern toolchains
3 Several files are missing the correct includes for exit/getenvmemcpy/strlen/..
5 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
7 lib/arch/CArchDaemonUnix.cpp | 1 +
8 lib/arch/CMultibyte.cpp | 1 +
9 lib/base/CStringUtil.cpp | 1 +
10 lib/client/CClient.cpp | 3 ++-
11 lib/client/CServerProxy.cpp | 1 +
12 lib/net/CTCPSocket.cpp | 2 +-
13 lib/platform/CXWindowsScreen.cpp | 1 +
14 lib/server/CClientProxy1_3.cpp | 1 +
15 lib/server/CServer.cpp | 1 +
16 lib/synergy/CPacketStreamFilter.cpp | 1 +
17 lib/synergy/IKeyState.cpp | 1 +
18 lib/synergy/IPrimaryScreen.cpp | 1 +
19 12 files changed, 13 insertions(+), 2 deletions(-)
21 Index: synergy-1.3.1/lib/arch/CArchDaemonUnix.cpp
22 ===================================================================
23 --- synergy-1.3.1.orig/lib/arch/CArchDaemonUnix.cpp
24 +++ synergy-1.3.1/lib/arch/CArchDaemonUnix.cpp
33 Index: synergy-1.3.1/lib/arch/CMultibyte.cpp
34 ===================================================================
35 --- synergy-1.3.1.orig/lib/arch/CMultibyte.cpp
36 +++ synergy-1.3.1/lib/arch/CMultibyte.cpp
45 Index: synergy-1.3.1/lib/base/CStringUtil.cpp
46 ===================================================================
47 --- synergy-1.3.1.orig/lib/base/CStringUtil.cpp
48 +++ synergy-1.3.1/lib/base/CStringUtil.cpp
57 Index: synergy-1.3.1/lib/client/CClient.cpp
58 ===================================================================
59 --- synergy-1.3.1.orig/lib/client/CClient.cpp
60 +++ synergy-1.3.1/lib/client/CClient.cpp
63 #include "IEventQueue.h"
64 #include "TMethodEventJob.h"
71 Index: synergy-1.3.1/lib/client/CServerProxy.cpp
72 ===================================================================
73 --- synergy-1.3.1.orig/lib/client/CServerProxy.cpp
74 +++ synergy-1.3.1/lib/client/CServerProxy.cpp
76 #include "TMethodEventJob.h"
83 Index: synergy-1.3.1/lib/net/CTCPSocket.cpp
84 ===================================================================
85 --- synergy-1.3.1.orig/lib/net/CTCPSocket.cpp
86 +++ synergy-1.3.1/lib/net/CTCPSocket.cpp
96 Index: synergy-1.3.1/lib/platform/CXWindowsScreen.cpp
97 ===================================================================
98 --- synergy-1.3.1.orig/lib/platform/CXWindowsScreen.cpp
99 +++ synergy-1.3.1/lib/platform/CXWindowsScreen.cpp
101 #include "IEventQueue.h"
102 #include "TMethodEventJob.h"
105 #if X_DISPLAY_MISSING
106 # error X11 is required to build synergy
108 Index: synergy-1.3.1/lib/server/CClientProxy1_3.cpp
109 ===================================================================
110 --- synergy-1.3.1.orig/lib/server/CClientProxy1_3.cpp
111 +++ synergy-1.3.1/lib/server/CClientProxy1_3.cpp
114 #include "IEventQueue.h"
115 #include "TMethodEventJob.h"
120 Index: synergy-1.3.1/lib/server/CServer.cpp
121 ===================================================================
122 --- synergy-1.3.1.orig/lib/server/CServer.cpp
123 +++ synergy-1.3.1/lib/server/CServer.cpp
125 #include "TMethodEventJob.h"
132 Index: synergy-1.3.1/lib/synergy/CPacketStreamFilter.cpp
133 ===================================================================
134 --- synergy-1.3.1.orig/lib/synergy/CPacketStreamFilter.cpp
135 +++ synergy-1.3.1/lib/synergy/CPacketStreamFilter.cpp
137 #include "IEventQueue.h"
139 #include "TMethodEventJob.h"
143 // CPacketStreamFilter
144 Index: synergy-1.3.1/lib/synergy/IKeyState.cpp
145 ===================================================================
146 --- synergy-1.3.1.orig/lib/synergy/IKeyState.cpp
147 +++ synergy-1.3.1/lib/synergy/IKeyState.cpp
150 #include "IKeyState.h"
156 Index: synergy-1.3.1/lib/synergy/IPrimaryScreen.cpp
157 ===================================================================
158 --- synergy-1.3.1.orig/lib/synergy/IPrimaryScreen.cpp
159 +++ synergy-1.3.1/lib/synergy/IPrimaryScreen.cpp
163 #include "IPrimaryScreen.h"