aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/mldonkey-devel
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2006-06-25 13:01:53 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2006-06-25 13:01:53 +0000
commit0396017d11930fb389ec022f77333b5c178d5695 (patch)
treee1daf8a8e49833d5d46d9290693f6e4750dd4a67 /net-p2p/mldonkey-devel
parenta45d66ce99b4eb6894fa749313fa0524a3780a2b (diff)
downloadports-0396017d11930fb389ec022f77333b5c178d5695.tar.gz
ports-0396017d11930fb389ec022f77333b5c178d5695.zip
Notes
Diffstat (limited to 'net-p2p/mldonkey-devel')
-rw-r--r--net-p2p/mldonkey-devel/Makefile1
-rw-r--r--net-p2p/mldonkey-devel/files/patch-src__utils__lib__stubs_c.c23
2 files changed, 24 insertions, 0 deletions
diff --git a/net-p2p/mldonkey-devel/Makefile b/net-p2p/mldonkey-devel/Makefile
index 1b7eed8ae739..fa49e5e4c046 100644
--- a/net-p2p/mldonkey-devel/Makefile
+++ b/net-p2p/mldonkey-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mldonkey
PORTVERSION= 2.7.7
+PORTREVISION= 1
CATEGORIES+= net-p2p
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} \
${MASTER_SITE_SAVANNAH}
diff --git a/net-p2p/mldonkey-devel/files/patch-src__utils__lib__stubs_c.c b/net-p2p/mldonkey-devel/files/patch-src__utils__lib__stubs_c.c
new file mode 100644
index 000000000000..f819aef2c39e
--- /dev/null
+++ b/net-p2p/mldonkey-devel/files/patch-src__utils__lib__stubs_c.c
@@ -0,0 +1,23 @@
+--- src/utils/lib/stubs_c.c.orig Wed Jan 4 12:23:37 2006
++++ src/utils/lib/stubs_c.c Mon Jan 16 14:14:38 2006
+@@ -28,6 +28,11 @@
+ #include <inttypes.h>
+ #endif
+
++/* For proper FreeBSD version identification */
++#if defined(HAVE_SYS_PARAM_H)
++#include <sys/param.h>
++#endif
++
+ #define lseek XXXXXXXXX
+ #define read XXXXXXXXX
+ #define ftruncate XXXXXXXXX
+@@ -683,7 +688,7 @@
+
+ #define NETDB_BUFFER_SIZE 10000
+
+-#ifdef _WIN32
++#if defined(_WIN32) || ( defined(__FreeBSD_version) && ( ((__FreeBSD_version >= 504102) && (__FreeBSD_version < 600000)) || (__FreeBSD_version >= 600029) ) )
+ #define GETHOSTBYADDR_IS_REENTRANT 1
+ #define GETHOSTBYNAME_IS_REENTRANT 1
+ #endif