1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

- Fix build on alpha/4.x

PR:		ports/76528
Submitted by:	J.R. Oldroyd <fbsd@opal.com> (maintainer)
This commit is contained in:
Pav Lucistnik 2005-01-26 00:13:43 +00:00
parent a7f5634511
commit ccd4d34623
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=127346
3 changed files with 26 additions and 4 deletions

View File

@ -35,15 +35,15 @@ BOINC_DATADIR= ${PREFIX}/boinc
.include <bsd.port.pre.mk>
.if ${ARCH} == "alpha"
BROKEN= "Does not compile on alpha"
.endif
.if ${OSVERSION} < 500000
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-api::boinc_api.C
.endif
post-patch:
.if ${OSVERSION} < 500000
${PATCH} -d ${WRKSRC} <${FILESDIR}/extra-patch-client::gui_rpc_server.C
${PATCH} -d ${WRKSRC} <${FILESDIR}/extra-patch-client::net_xfer.C
.endif
${CHMOD} +x ${WRKDIR}/boinc_public/configure
do-build:

View File

@ -0,0 +1,11 @@
--- client/gui_rpc_server.C.orig Tue Dec 21 13:25:39 2004
+++ client/gui_rpc_server.C Tue Dec 21 13:27:04 2004
@@ -49,7 +49,7 @@
typedef int socklen_t;
#elif defined(__APPLE__)
typedef int32_t socklen_t;
-#elif !defined(GETSOCKOPT_SOCKLEN_T) && !defined(_SOCKLEN_T_DECLARED) && !defined(socklen_t)
+#elif !defined(__FreeBSD__)
typedef size_t socklen_t;
#endif

View File

@ -0,0 +1,11 @@
--- client/net_xfer.C.orig Tue Dec 21 13:25:39 2004
+++ client/net_xfer.C Tue Dec 21 13:28:15 2004
@@ -80,7 +80,7 @@
typedef int socklen_t;
#elif defined(__APPLE__)
typedef int32_t socklen_t;
-#elif !defined(GETSOCKOPT_SOCKLEN_T) && !defined(_SOCKLEN_T_DECLARED) && !defined(socklen_t)
+#elif !defined(__FreeBSD__)
typedef size_t socklen_t;
#endif