aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/transmission-cli
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2006-03-19 13:53:04 +0800
committermezz <mezz@FreeBSD.org>2006-03-19 13:53:04 +0800
commitb11286e1d2671d5adea51c726d509ea6febd1d25 (patch)
treeffcb8be3fa8526be1c5291cfe95e9b153018bfb4 /net-p2p/transmission-cli
parent939f1b5f208a744a5e365d7246ceab44a4b414ec (diff)
downloadfreebsd-ports-gnome-b11286e1d2671d5adea51c726d509ea6febd1d25.tar.gz
freebsd-ports-gnome-b11286e1d2671d5adea51c726d509ea6febd1d25.tar.zst
freebsd-ports-gnome-b11286e1d2671d5adea51c726d509ea6febd1d25.zip
Fix the build on FreeBSD 4.x; it's untest.
Reported by: krismail
Diffstat (limited to 'net-p2p/transmission-cli')
-rw-r--r--net-p2p/transmission-cli/files/patch-freebsd427
1 files changed, 27 insertions, 0 deletions
diff --git a/net-p2p/transmission-cli/files/patch-freebsd4 b/net-p2p/transmission-cli/files/patch-freebsd4
new file mode 100644
index 000000000000..8c776fb626a5
--- /dev/null
+++ b/net-p2p/transmission-cli/files/patch-freebsd4
@@ -0,0 +1,27 @@
+--- configure.orig Sat Mar 18 23:21:44 2006
++++ configure Sat Mar 18 23:29:04 2006
+@@ -223,6 +223,13 @@
+ FreeBSD)
+ DEFINES="$DEFINES SYS_FREEBSD"
+ LINKLIBS="$LINKLIBS -pthread -lm"
++
++ RELEASE=`uname -r`
++ case $RELEASE in
++ 4.*)
++ DEFINES="$DEFINES SYS_FREEBSD_4"
++ ;;
++ esac
+ ;;
+
+ NetBSD)
+--- libtransmission/choking.c.orig Sat Mar 18 23:30:46 2006
++++ libtransmission/choking.c Sat Mar 18 23:31:15 2006
+@@ -23,7 +23,7 @@
+ #include <math.h>
+ #include "transmission.h"
+
+-#ifdef SYS_BEOS
++#if defined(SYS_BEOS) || defined(SYS_FREEBSD_4)
+ #define lrintf(a) ((int)(0.5+(a)))
+ #endif
+