freebsd-ports/net/boinc-client/files/patch-client::gui_rpc_server.C
Edwin Groothuis 650b669bd2 update port: net/boinc-client - fixes for FreeBSD 4.X and for 64-bit archs
Update of boinc-client port to address issues with reentrancy
	problems on FreeBSD 4.x (malloc() called recursively) and also
	to address differences in rc.d files on 4.X.

	Update also fixes compilation problems on 64-bit architectures.

PR:		ports/75062
Submitted by:	J.R. Oldroyd <fbsd@opal.com>
2004-12-15 05:14:36 +00:00

17 lines
491 B
C

--- client/gui_rpc_server.C.orig Mon Sep 27 15:07:29 2004
+++ client/gui_rpc_server.C Thu Dec 2 20:59:58 2004
@@ -47,12 +47,10 @@
#if defined(_WIN32)
typedef int socklen_t;
-#elif defined ( __APPLE__)
+#elif defined(__APPLE__)
typedef int32_t socklen_t;
-#elif !GETSOCKOPT_SOCKLEN_T
-#ifndef socklen_t
+#elif !defined(GETSOCKOPT_SOCKLEN_T) && !defined(_SOCKLEN_T_DECLARED) && !defined(socklen_t)
typedef size_t socklen_t;
-#endif
#endif
static void boinc_close_socket(int sock) {