$OpenBSD: patch-src_lib_ipc_CIpcServerProxy_cpp,v 1.4 2013/07/04 14:49:26 landry Exp $

On loongson/sparc64/hppa:
CIpcServerProxy.cpp: In member function 'void CIpcServerProxy::send(const CIpcMessage&)':
CIpcServerProxy.cpp:93: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
../synergy/CProtocolUtil.h:81: note: candidate 1: static void CProtocolUtil::writef(void*, const char*, void*)
../synergy/CProtocolUtil.h:53: note: candidate 2: static void CProtocolUtil::writef(synergy::IStream*, const char*, ...)
../synergy/CProtocolUtil.h:81: error: 'static void CProtocolUtil::writef(void*, const char*, void*)' is private
CIpcServerProxy.cpp:93: error: within this context

gcc bug fixed in 4.3.3

--- src/lib/ipc/CIpcServerProxy.cpp.orig	Mon Sep  3 22:09:56 2012
+++ src/lib/ipc/CIpcServerProxy.cpp	Thu Apr 18 10:50:31 2013
@@ -91,7 +91,11 @@ CIpcServerProxy::send(const CIpcMessage& message)
 	case kIpcCommand: {
 		const CIpcCommandMessage& cm = static_cast<const CIpcCommandMessage&>(message);
 		CString command = cm.command();
+#if defined(__mips64__) || defined(__sparc64__) || defined(__hppa__)
+		CProtocolUtil::writef(static_cast<void*>(&m_stream), static_cast<const char*>(kIpcMsgCommand), &command);
+#else
 		CProtocolUtil::writef(&m_stream, kIpcMsgCommand, &command);
+#endif
 		break;
 	}
 
