aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/mldonkey-devel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/mldonkey-devel/Makefile')
-rw-r--r--net-p2p/mldonkey-devel/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/net-p2p/mldonkey-devel/Makefile b/net-p2p/mldonkey-devel/Makefile
index 87176430379d..c0f2b5019996 100644
--- a/net-p2p/mldonkey-devel/Makefile
+++ b/net-p2p/mldonkey-devel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mldonkey
PORTVERSION= 2.7.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES+= net
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -90,6 +90,11 @@ PKGMESSAGE= ${WRKDIR}/pkg-message
USE_GCC= 3.4
.endif
+# FreeBSD has reentrant dns code
+.if ( ((${OSVERSION} >= 504102) && (${OSVERSION} < 600000)) || (${OSVERSION} >= 600029) )
+PTHREAD_CFLAGS+= -D_REENTRANT
+.endif
+
### Development version
## Thus, we will use non standard threading library
## We will switch from libpthread to libthr which should produce