Dash:
[t2-trunk.git] / package / x11 / synergy / hotfix-gcc43.patch
blob28377cbe36edb1ef617d973ae44b43e01fe60700
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../synergy/gcc43.patch
5 # Copyright (C) 2008 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- synergy-1.3.1/lib/platform/CXWindowsScreen.cpp.vanilla 2008-08-09 20:18:15.000000000 +0200
18 +++ synergy-1.3.1/lib/platform/CXWindowsScreen.cpp 2008-08-09 20:18:24.000000000 +0200
19 @@ -27,6 +27,8 @@
20 #include "IEventQueue.h"
21 #include "TMethodEventJob.h"
22 #include <cstring>
23 +#include <stdlib.h>
25 #if X_DISPLAY_MISSING
26 # error X11 is required to build synergy
27 #else
28 --- synergy-1.3.1/lib/synergy/IKeyState.cpp.vanilla 2008-08-09 20:17:31.000000000 +0200
29 +++ synergy-1.3.1/lib/synergy/IKeyState.cpp 2008-08-09 20:17:38.000000000 +0200
30 @@ -14,6 +14,7 @@
32 #include "IKeyState.h"
33 #include <string.h>
34 +#include <stdlib.h>
37 // IKeyState
38 --- synergy-1.3.1/lib/synergy/IPrimaryScreen.cpp.vanilla 2008-08-09 20:17:49.000000000 +0200
39 +++ synergy-1.3.1/lib/synergy/IPrimaryScreen.cpp 2008-08-09 20:17:56.000000000 +0200
40 @@ -13,6 +13,7 @@
43 #include "IPrimaryScreen.h"
44 +#include <stdlib.h>
47 // IPrimaryScreen
48 --- synergy-1.3.1/lib/synergy/CPacketStreamFilter.cpp.vanilla 2008-08-09 20:17:08.000000000 +0200
49 +++ synergy-1.3.1/lib/synergy/CPacketStreamFilter.cpp 2008-08-09 20:17:17.000000000 +0200
50 @@ -12,6 +12,8 @@
51 * GNU General Public License for more details.
54 +#include <string.h>
56 #include "CPacketStreamFilter.h"
57 #include "IEventQueue.h"
58 #include "CLock.h"
59 --- synergy-1.3.1/lib/net/CTCPSocket.cpp.vanilla 2008-08-09 20:15:30.000000000 +0200
60 +++ synergy-1.3.1/lib/net/CTCPSocket.cpp 2008-08-09 20:16:02.000000000 +0200
61 @@ -24,6 +24,7 @@
62 #include "CArch.h"
63 #include "XArch.h"
64 #include <string.h>
65 +#include <stdlib.h>
68 // CTCPSocket
69 --- synergy-1.3.1/lib/base/CStringUtil.cpp.vanilla 2008-08-09 20:15:03.000000000 +0200
70 +++ synergy-1.3.1/lib/base/CStringUtil.cpp 2008-08-09 20:15:14.000000000 +0200
71 @@ -16,6 +16,7 @@
72 #include "CArch.h"
73 #include "common.h"
74 #include "stdvector.h"
75 +#include <string.h>
76 #include <cctype>
77 #include <cstdio>
78 #include <cstdlib>
79 --- synergy-1.3.1/lib/arch/CMultibyte.cpp.vanilla 2008-08-09 20:13:01.000000000 +0200
80 +++ synergy-1.3.1/lib/arch/CMultibyte.cpp 2008-08-09 20:13:35.000000000 +0200
81 @@ -24,8 +24,6 @@
82 #endif
83 #if HAVE_WCHAR_H || defined(_MSC_VER)
84 # include <wchar.h>
85 -#elif __APPLE__
86 - // wtf? Darwin puts mbtowc() et al. in stdlib
87 # include <stdlib.h>
88 #else
89 // platform apparently has no wchar_t support. provide dummy
90 --- synergy-1.3.1/lib/arch/CArchDaemonUnix.cpp.vanilla 2008-08-09 20:13:50.000000000 +0200
91 +++ synergy-1.3.1/lib/arch/CArchDaemonUnix.cpp 2008-08-09 20:14:48.000000000 +0200
92 @@ -15,6 +15,7 @@
93 #include "CArchDaemonUnix.h"
94 #include "XArchUnix.h"
95 #include <unistd.h>
96 +#include <stdlib.h>
97 #include <sys/types.h>
98 #include <sys/stat.h>
99 #include <fcntl.h>
100 --- synergy-1.3.1/lib/server/CClientProxy1_3.cpp.vanilla 2008-08-09 20:20:10.000000000 +0200
101 +++ synergy-1.3.1/lib/server/CClientProxy1_3.cpp 2008-08-09 20:20:20.000000000 +0200
102 @@ -18,6 +18,8 @@
103 #include "IEventQueue.h"
104 #include "TMethodEventJob.h"
106 +#include <string.h>
109 // CClientProxy1_3
111 --- synergy-1.3.1/lib/server/CServer.cpp.vanilla 2008-08-09 20:20:30.000000000 +0200
112 +++ synergy-1.3.1/lib/server/CServer.cpp 2008-08-09 20:20:37.000000000 +0200
113 @@ -29,6 +29,7 @@
114 #include "TMethodEventJob.h"
115 #include "CArch.h"
116 #include <string.h>
117 +#include <stdlib.h>
120 // CServer
121 --- synergy-1.3.1/lib/client/CClient.cpp.vanilla 2008-08-09 20:18:50.000000000 +0200
122 +++ synergy-1.3.1/lib/client/CClient.cpp 2008-08-09 20:19:17.000000000 +0200
123 @@ -27,6 +27,9 @@
124 #include "IEventQueue.h"
125 #include "TMethodEventJob.h"
127 +#include <string.h>
128 +#include <stdlib.h>
131 // CClient
133 --- synergy-1.3.1/lib/client/CServerProxy.cpp.vanilla 2008-08-09 20:19:26.000000000 +0200
134 +++ synergy-1.3.1/lib/client/CServerProxy.cpp 2008-08-09 20:19:49.000000000 +0200
135 @@ -24,6 +24,7 @@
136 #include "TMethodEventJob.h"
137 #include "XBase.h"
138 #include <memory>
139 +#include <string.h>
142 // CServerProxy