board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / synergy / 0001-includes.patch
blobaccaf8292a47942d82674de0ac034815053b293d
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>
6 ---
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
25 @@ -19,6 +19,7 @@
26 #include <sys/stat.h>
27 #include <fcntl.h>
28 #include <errno.h>
29 +#include <stdlib.h>
32 // CArchDaemonUnix
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
37 @@ -19,6 +19,7 @@
38 #include "CArch.h"
39 #include <limits.h>
40 #include <string.h>
41 +#include <stdlib.h>
42 #if HAVE_LOCALE_H
43 # include <locale.h>
44 #endif
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
49 @@ -19,6 +19,7 @@
50 #include <cctype>
51 #include <cstdio>
52 #include <cstdlib>
53 +#include <cstring>
54 #include <algorithm>
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
61 @@ -26,7 +26,8 @@
62 #include "CLog.h"
63 #include "IEventQueue.h"
64 #include "TMethodEventJob.h"
66 +#include <string.h>
67 +#include <stdlib.h>
69 // CClient
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
75 @@ -24,6 +24,7 @@
76 #include "TMethodEventJob.h"
77 #include "XBase.h"
78 #include <memory>
79 +#include <string.h>
82 // CServerProxy
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
87 @@ -24,7 +24,7 @@
88 #include "CArch.h"
89 #include "XArch.h"
90 #include <string.h>
92 +#include <stdlib.h>
94 // CTCPSocket
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
100 @@ -27,6 +27,7 @@
101 #include "IEventQueue.h"
102 #include "TMethodEventJob.h"
103 #include <cstring>
104 +#include <stdlib.h>
105 #if X_DISPLAY_MISSING
106 # error X11 is required to build synergy
107 #else
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
112 @@ -17,6 +17,7 @@
113 #include "CLog.h"
114 #include "IEventQueue.h"
115 #include "TMethodEventJob.h"
116 +#include <string.h>
119 // CClientProxy1_3
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
124 @@ -29,6 +29,7 @@
125 #include "TMethodEventJob.h"
126 #include "CArch.h"
127 #include <string.h>
128 +#include <stdlib.h>
131 // CServer
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
136 @@ -16,6 +16,7 @@
137 #include "IEventQueue.h"
138 #include "CLock.h"
139 #include "TMethodEventJob.h"
140 +#include <string.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
148 @@ -14,6 +14,7 @@
150 #include "IKeyState.h"
151 #include <string.h>
152 +#include <stdlib.h>
155 // IKeyState
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
160 @@ -13,6 +13,7 @@
163 #include "IPrimaryScreen.h"
164 +#include <stdlib.h>
167 // IPrimaryScreen