aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authorshaun <shaun@FreeBSD.org>2006-11-23 11:32:11 +0800
committershaun <shaun@FreeBSD.org>2006-11-23 11:32:11 +0800
commitb2ef910f0815820d4f4f6043d0f1e653c0ee20d0 (patch)
tree001fa89a4540c7a74240b5d43698664e65dfedb9 /ftp
parentfb0f24980a5f942d62a70c286fe52ee2190a6fe4 (diff)
downloadfreebsd-ports-gnome-b2ef910f0815820d4f4f6043d0f1e653c0ee20d0.tar.gz
freebsd-ports-gnome-b2ef910f0815820d4f4f6043d0f1e653c0ee20d0.tar.zst
freebsd-ports-gnome-b2ef910f0815820d4f4f6043d0f1e653c0ee20d0.zip
Fix build on sparc64.
Diffstat (limited to 'ftp')
-rw-r--r--ftp/downloader/Makefile2
-rw-r--r--ftp/downloader/files/patch-main-socket.cc20
2 files changed, 21 insertions, 1 deletions
diff --git a/ftp/downloader/Makefile b/ftp/downloader/Makefile
index efc0fe2fd8cd..275754b60ae8 100644
--- a/ftp/downloader/Makefile
+++ b/ftp/downloader/Makefile
@@ -53,7 +53,7 @@ LDFLAGS+= -lssl -lcrypto
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
-BROKEN= Does not compile on sparc64
+CPPFLAGS+= -D__sparc__
.endif
post-patch:
diff --git a/ftp/downloader/files/patch-main-socket.cc b/ftp/downloader/files/patch-main-socket.cc
new file mode 100644
index 000000000000..ad3cabc36904
--- /dev/null
+++ b/ftp/downloader/files/patch-main-socket.cc
@@ -0,0 +1,20 @@
+--- main/socket.cc.orig Sun Apr 9 13:39:25 2006
++++ main/socket.cc Thu Nov 23 03:30:12 2006
+@@ -112,7 +112,7 @@
+
+ unsigned int tSocket::get_addr() {
+ unsigned int my_addr=0;
+-#if defined(__sparc__) && !(defined(__linux__))
++#if defined(__sparc__) && !(defined(__linux__)) && !(defined(BSD))
+ int len;
+ #else
+ socklen_t len;
+@@ -271,7 +271,7 @@
+ int tSocket::accepting(const char * host) {
+ DBC_RETVAL_IF_FAIL(host!=NULL,-1);
+ sockaddr_in addr;
+-#if defined(__sparc__) && !(defined(__linux__))
++#if defined(__sparc__) && !(defined(__linux__)) && !(defined(BSD))
+ int len=sizeof(addr);
+ #else
+ socklen_t len=sizeof(addr);