diff options
-rw-r--r-- | ftp/downloader/Makefile | 2 | ||||
-rw-r--r-- | ftp/downloader/files/patch-main-socket.cc | 20 |
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); |