diff options
author | mezz <mezz@FreeBSD.org> | 2006-03-19 13:53:04 +0800 |
---|---|---|
committer | mezz <mezz@FreeBSD.org> | 2006-03-19 13:53:04 +0800 |
commit | b11286e1d2671d5adea51c726d509ea6febd1d25 (patch) | |
tree | ffcb8be3fa8526be1c5291cfe95e9b153018bfb4 /net-p2p/transmission-cli | |
parent | 939f1b5f208a744a5e365d7246ceab44a4b414ec (diff) | |
download | freebsd-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-freebsd4 | 27 |
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 + |