$OpenBSD: patch-src_lib_server_CClientProxy1_4_cpp,v 1.3 2013/11/18 23:56:35 bcallah Exp $

On loongson/sparc64/hppa:
Same issue as CIpcServerProxy.cpp

--- src/lib/server/CClientProxy1_4.cpp.orig	Fri Aug 16 14:06:30 2013
+++ src/lib/server/CClientProxy1_4.cpp	Sun Nov 17 15:00:17 2013
@@ -81,7 +81,11 @@ CClientProxy1_4::cryptoIv()
 	CString data(reinterpret_cast<const char*>(iv), CRYPTO_IV_SIZE);
 
 	LOG((CLOG_DEBUG2 "send crypto iv change to \"%s\"", getName().c_str()));
+#if defined(__mips64__) || defined(__sparc64__) || defined(__hppa__)
+	CProtocolUtil::writef(static_cast<void*>(getStream()), static_cast<const char*>(kMsgDCryptoIv), &data);
+#else
 	CProtocolUtil::writef(getStream(), kMsgDCryptoIv, &data);
+#endif
 	
 	// change IV only after we've sent the current IV, otherwise
 	// the client won't be able to decrypt the new IV.
