Tue Nov 22 20:07:20 2011 UTC ()
Fix issues with newer GCC


(joerg)
diff -r1.3 -r1.4 pkgsrc/net/synergy1.2/distinfo
diff -r1.1 -r1.2 pkgsrc/net/synergy1.2/patches/patch-aa
diff -r1.1 -r1.2 pkgsrc/net/synergy1.2/patches/patch-ab
diff -r0 -r1.1 pkgsrc/net/synergy1.2/patches/patch-lib-arch-CArchDaemonUnix.cpp
diff -r0 -r1.1 pkgsrc/net/synergy1.2/patches/patch-lib_arch_CMultibyte.cpp
diff -r0 -r1.1 pkgsrc/net/synergy1.2/patches/patch-lib_base_CStringUtil.cpp
diff -r0 -r1.1 pkgsrc/net/synergy1.2/patches/patch-lib_client_CClient.cpp
diff -r0 -r1.1 pkgsrc/net/synergy1.2/patches/patch-lib_client_CServerProxy.cpp
diff -r0 -r1.1 pkgsrc/net/synergy1.2/patches/patch-lib_net_CTCPSocket.cpp
diff -r0 -r1.1 pkgsrc/net/synergy1.2/patches/patch-lib_server_CServer.cpp
diff -r0 -r1.1 pkgsrc/net/synergy1.2/patches/patch-lib_synergy_CPacketStreamFilter.cpp
diff -r0 -r1.1 pkgsrc/net/synergy1.2/patches/patch-lib_synergy_IKeyState.cpp
diff -r0 -r1.1 pkgsrc/net/synergy1.2/patches/patch-lib_synergy_IPrimaryScreen.cpp

cvs diff -r1.3 -r1.4 pkgsrc/net/synergy1.2/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/net/synergy1.2/Attic/distinfo 2009/06/05 09:49:53 1.3
+++ pkgsrc/net/synergy1.2/Attic/distinfo 2011/11/22 20:07:20 1.4
@@ -1,7 +1,17 @@ @@ -1,7 +1,17 @@
1$NetBSD: distinfo,v 1.3 2009/06/05 09:49:53 hasso Exp $ 1$NetBSD: distinfo,v 1.4 2011/11/22 20:07:20 joerg Exp $
2 2
3SHA1 (synergy-1.2.7.tar.gz) = 5964460892fd9e9cb55c5bfe4e781f2bc08d0b76 3SHA1 (synergy-1.2.7.tar.gz) = 5964460892fd9e9cb55c5bfe4e781f2bc08d0b76
4RMD160 (synergy-1.2.7.tar.gz) = 6bdbe5adbc13c2f49afcb99ccaa20b96a12c2bcf 4RMD160 (synergy-1.2.7.tar.gz) = 6bdbe5adbc13c2f49afcb99ccaa20b96a12c2bcf
5Size (synergy-1.2.7.tar.gz) = 707319 bytes 5Size (synergy-1.2.7.tar.gz) = 707319 bytes
6SHA1 (patch-aa) = 20747abe2f447adb5967a767ee5ec9d9f09c8fb4 6SHA1 (patch-aa) = 5a48140c7622195a716eededae2d1ee0f6fa4e85
7SHA1 (patch-ab) = 2a4b8c368f0733f0c6e9d60b42660e459a2a55c1 7SHA1 (patch-ab) = 011deedba1d2a793ff4add4196c8a10708e864f5
 8SHA1 (patch-lib-arch-CArchDaemonUnix.cpp) = 1d11d87f9a388ba68403ff74d4fcd5fa180a919e
 9SHA1 (patch-lib_arch_CMultibyte.cpp) = 66cc7cd1e327a1bfd519cb003835914221cbb369
 10SHA1 (patch-lib_base_CStringUtil.cpp) = 8f803bcab5a37bd4bf5a918fe3333338bd7d22c2
 11SHA1 (patch-lib_client_CClient.cpp) = afa4dc5089da155756a5ea4772be216256f71663
 12SHA1 (patch-lib_client_CServerProxy.cpp) = d6692bebbb6c71684cd320822859701b96fb7efc
 13SHA1 (patch-lib_net_CTCPSocket.cpp) = 609768fa601c76e6431c222ab66e7aabf59bab49
 14SHA1 (patch-lib_server_CServer.cpp) = eefe1004a9dd7216c0496f9e9b46cfa0fa2f13f3
 15SHA1 (patch-lib_synergy_CPacketStreamFilter.cpp) = 614734a5a276950ff688e4d3a9c3e7ae66fed743
 16SHA1 (patch-lib_synergy_IKeyState.cpp) = fb6a64639156f56bb353ed598835cb5badb3a1f2
 17SHA1 (patch-lib_synergy_IPrimaryScreen.cpp) = 3a04d64a8270ed2da265213bacdf32c72ad01fcc

cvs diff -r1.1 -r1.2 pkgsrc/net/synergy1.2/patches/Attic/patch-aa (expand / switch to unified diff)

--- pkgsrc/net/synergy1.2/patches/Attic/patch-aa 2009/02/09 17:04:49 1.1
+++ pkgsrc/net/synergy1.2/patches/Attic/patch-aa 2011/11/22 20:07:20 1.2
@@ -1,31 +1,39 @@ @@ -1,31 +1,39 @@
1$NetBSD: patch-aa,v 1.1 2009/02/09 17:04:49 joerg Exp $ 1$NetBSD: patch-aa,v 1.2 2011/11/22 20:07:20 joerg Exp $
2 2
3--- lib/platform/CXWindowsScreen.cpp.orig 2009-02-09 17:47:55.000000000 +0100 3--- lib/platform/CXWindowsScreen.cpp.orig 2005-12-15 05:46:20.000000000 +0000
4+++ lib/platform/CXWindowsScreen.cpp 4+++ lib/platform/CXWindowsScreen.cpp
5@@ -923,7 +923,7 @@ CXWindowsScreen::openIM() 5@@ -25,6 +25,7 @@
 6 #include "CStringUtil.h"
 7 #include "IEventQueue.h"
 8 #include "TMethodEventJob.h"
 9+#include <cstdlib>
 10 #include <cstring>
 11 #if X_DISPLAY_MISSING
 12 # error X11 is required to build synergy
 13@@ -923,7 +924,7 @@ CXWindowsScreen::openIM()
6 // find the appropriate style. synergy supports XIMPreeditNothing 14 // find the appropriate style. synergy supports XIMPreeditNothing
7 // only at the moment. 15 // only at the moment.
8 XIMStyles* styles; 16 XIMStyles* styles;
9- if (XGetIMValues(im, XNQueryInputStyle, &styles, NULL) != NULL || 17- if (XGetIMValues(im, XNQueryInputStyle, &styles, NULL) != NULL ||
10+ if (XGetIMValues(im, XNQueryInputStyle, &styles, (void *)NULL) != NULL || 18+ if (XGetIMValues(im, XNQueryInputStyle, &styles, (void *)NULL) != NULL ||
11 styles == NULL) { 19 styles == NULL) {
12 LOG((CLOG_WARN "cannot get IM styles")); 20 LOG((CLOG_WARN "cannot get IM styles"));
13 XCloseIM(im); 21 XCloseIM(im);
14@@ -946,7 +946,7 @@ CXWindowsScreen::openIM() 22@@ -946,7 +947,7 @@ CXWindowsScreen::openIM()
15 } 23 }
16  24
17 // create an input context for the style and tell it about our window 25 // create an input context for the style and tell it about our window
18- XIC ic = XCreateIC(im, XNInputStyle, style, XNClientWindow, m_window, NULL); 26- XIC ic = XCreateIC(im, XNInputStyle, style, XNClientWindow, m_window, NULL);
19+ XIC ic = XCreateIC(im, XNInputStyle, style, XNClientWindow, m_window, (void *)NULL); 27+ XIC ic = XCreateIC(im, XNInputStyle, style, XNClientWindow, m_window, (void *)NULL);
20 if (ic == NULL) { 28 if (ic == NULL) {
21 LOG((CLOG_WARN "cannot create IC")); 29 LOG((CLOG_WARN "cannot create IC"));
22 XCloseIM(im); 30 XCloseIM(im);
23@@ -955,7 +955,7 @@ CXWindowsScreen::openIM() 31@@ -955,7 +956,7 @@ CXWindowsScreen::openIM()
24  32
25 // find out the events we must select for and do so 33 // find out the events we must select for and do so
26 unsigned long mask; 34 unsigned long mask;
27- if (XGetICValues(ic, XNFilterEvents, &mask, NULL) != NULL) { 35- if (XGetICValues(ic, XNFilterEvents, &mask, NULL) != NULL) {
28+ if (XGetICValues(ic, XNFilterEvents, &mask, (void *)NULL) != NULL) { 36+ if (XGetICValues(ic, XNFilterEvents, &mask, (void *)NULL) != NULL) {
29 LOG((CLOG_WARN "cannot get IC filter events")); 37 LOG((CLOG_WARN "cannot get IC filter events"));
30 XDestroyIC(ic); 38 XDestroyIC(ic);
31 XCloseIM(im); 39 XCloseIM(im);

cvs diff -r1.1 -r1.2 pkgsrc/net/synergy1.2/patches/Attic/patch-ab (expand / switch to unified diff)

--- pkgsrc/net/synergy1.2/patches/Attic/patch-ab 2009/06/05 09:49:53 1.1
+++ pkgsrc/net/synergy1.2/patches/Attic/patch-ab 2011/11/22 20:07:20 1.2
@@ -1,13 +1,12 @@ @@ -1,13 +1,12 @@
1$NetBSD: patch-ab,v 1.1 2009/06/05 09:49:53 hasso Exp $ 1$NetBSD: patch-ab,v 1.2 2011/11/22 20:07:20 joerg Exp $
2 2
3--- lib/arch/CArchNetworkBSD.cpp.orig 2009-06-05 12:09:52 +0300 3--- lib/arch/CArchNetworkBSD.cpp.orig 2011-11-22 19:34:07.000000000 +0000
4+++ lib/arch/CArchNetworkBSD.cpp 2009-06-05 12:11:02 +0300 4+++ lib/arch/CArchNetworkBSD.cpp
5@@ -50,6 +50,8 @@ 5@@ -28,6 +28,7 @@
6 #if HAVE_ALLOCA_H 6 #include <fcntl.h>
7 # define freea(x_) 7 #include <errno.h>
8 #else 8 #include <string.h>
9+# undef alloca 9+#include <stdlib.h>
10+# undef freea 10
11 # define alloca(x_) malloc(x_) 11 #if HAVE_POLL
12 # define freea(x_) free(x_) 12 # include <poll.h>
13 #endif 

File Added: pkgsrc/net/synergy1.2/patches/Attic/patch-lib-arch-CArchDaemonUnix.cpp
$NetBSD: patch-lib-arch-CArchDaemonUnix.cpp,v 1.1 2011/11/22 20:07:20 joerg Exp $

--- lib/arch/CArchDaemonUnix.cpp.orig	2005-01-01 20:52:42.000000000 +0000
+++ lib/arch/CArchDaemonUnix.cpp
@@ -19,6 +19,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <errno.h>
+#include <stdlib.h>
 
 //
 // CArchDaemonUnix

File Added: pkgsrc/net/synergy1.2/patches/Attic/patch-lib_arch_CMultibyte.cpp
$NetBSD: patch-lib_arch_CMultibyte.cpp,v 1.1 2011/11/22 20:07:20 joerg Exp $

--- lib/arch/CMultibyte.cpp.orig	2011-11-22 19:34:33.000000000 +0000
+++ lib/arch/CMultibyte.cpp
@@ -18,15 +18,13 @@
 #include "common.h"
 #include "CArch.h"
 #include <limits.h>
+#include <stdlib.h>
 #include <string.h>
 #if HAVE_LOCALE_H
 #	include <locale.h>
 #endif
 #if HAVE_WCHAR_H || defined(_MSC_VER)
 #	include <wchar.h>
-#elif __APPLE__
-	// wtf?  Darwin puts mbtowc() et al. in stdlib
-#	include <stdlib.h>
 #else
 	// platform apparently has no wchar_t support.  provide dummy
 	// implementations.  hopefully at least the C++ compiler has

File Added: pkgsrc/net/synergy1.2/patches/Attic/patch-lib_base_CStringUtil.cpp
$NetBSD: patch-lib_base_CStringUtil.cpp,v 1.1 2011/11/22 20:07:20 joerg Exp $

--- lib/base/CStringUtil.cpp.orig	2011-11-22 19:35:22.000000000 +0000
+++ lib/base/CStringUtil.cpp
@@ -20,6 +20,7 @@
 #include <cstdio>
 #include <cstdlib>
 #include <algorithm>
+#include <cstring>
 
 //
 // CStringUtil

File Added: pkgsrc/net/synergy1.2/patches/Attic/patch-lib_client_CClient.cpp
$NetBSD: patch-lib_client_CClient.cpp,v 1.1 2011/11/22 20:07:20 joerg Exp $

--- lib/client/CClient.cpp.orig	2011-11-22 19:38:57.000000000 +0000
+++ lib/client/CClient.cpp
@@ -26,6 +26,8 @@
 #include "CLog.h"
 #include "IEventQueue.h"
 #include "TMethodEventJob.h"
+#include <stdlib.h>
+#include <string.h>
 
 //
 // CClient

File Added: pkgsrc/net/synergy1.2/patches/Attic/patch-lib_client_CServerProxy.cpp
$NetBSD: patch-lib_client_CServerProxy.cpp,v 1.1 2011/11/22 20:07:20 joerg Exp $

--- lib/client/CServerProxy.cpp.orig	2011-11-22 19:39:17.000000000 +0000
+++ lib/client/CServerProxy.cpp
@@ -24,6 +24,7 @@
 #include "TMethodEventJob.h"
 #include "XBase.h"
 #include <memory>
+#include <string.h>
 
 //
 // CServerProxy

File Added: pkgsrc/net/synergy1.2/patches/Attic/patch-lib_net_CTCPSocket.cpp
$NetBSD: patch-lib_net_CTCPSocket.cpp,v 1.1 2011/11/22 20:07:20 joerg Exp $

--- lib/net/CTCPSocket.cpp.orig	2011-11-22 19:36:24.000000000 +0000
+++ lib/net/CTCPSocket.cpp
@@ -23,6 +23,7 @@
 #include "IEventJob.h"
 #include "CArch.h"
 #include "XArch.h"
+#include <stdlib.h>
 #include <string.h>
 
 //

File Added: pkgsrc/net/synergy1.2/patches/Attic/patch-lib_server_CServer.cpp
$NetBSD: patch-lib_server_CServer.cpp,v 1.1 2011/11/22 20:07:20 joerg Exp $

--- lib/server/CServer.cpp.orig	2011-11-22 19:39:54.000000000 +0000
+++ lib/server/CServer.cpp
@@ -28,6 +28,7 @@
 #include "CLog.h"
 #include "TMethodEventJob.h"
 #include "CArch.h"
+#include <stdlib.h>
 #include <string.h>
 
 //

File Added: pkgsrc/net/synergy1.2/patches/Attic/patch-lib_synergy_CPacketStreamFilter.cpp
$NetBSD: patch-lib_synergy_CPacketStreamFilter.cpp,v 1.1 2011/11/22 20:07:20 joerg Exp $

--- lib/synergy/CPacketStreamFilter.cpp.orig	2011-11-22 19:37:00.000000000 +0000
+++ lib/synergy/CPacketStreamFilter.cpp
@@ -16,6 +16,7 @@
 #include "IEventQueue.h"
 #include "CLock.h"
 #include "TMethodEventJob.h"
+#include <string.h>
 
 //
 // CPacketStreamFilter

File Added: pkgsrc/net/synergy1.2/patches/Attic/patch-lib_synergy_IKeyState.cpp
$NetBSD: patch-lib_synergy_IKeyState.cpp,v 1.1 2011/11/22 20:07:20 joerg Exp $

--- lib/synergy/IKeyState.cpp.orig	2011-11-22 19:37:22.000000000 +0000
+++ lib/synergy/IKeyState.cpp
@@ -13,6 +13,7 @@
  */
 
 #include "IKeyState.h"
+#include <stdlib.h>
 
 //
 // IKeyState

File Added: pkgsrc/net/synergy1.2/patches/Attic/patch-lib_synergy_IPrimaryScreen.cpp
$NetBSD: patch-lib_synergy_IPrimaryScreen.cpp,v 1.1 2011/11/22 20:07:20 joerg Exp $

--- lib/synergy/IPrimaryScreen.cpp.orig	2011-11-22 19:37:41.000000000 +0000
+++ lib/synergy/IPrimaryScreen.cpp
@@ -13,6 +13,7 @@
  */
 
 #include "IPrimaryScreen.h"
+#include <stdlib.h>
 
 //
 // IPrimaryScreen